TCP Connection
Валентин Бартенев
vbart at nginx.com
Fri Mar 4 23:20:41 UTC 2016
On Friday 04 March 2016 23:25:27 Giulio Loffreda wrote:
> Here is my nginx.conf and site config.
> After calling tcp connection and getting http 400, no log is generated.
>
> I’m following
>
> Thanks
>
> server {
> listen 80;
> server_name apidvc.sparkgo.cc;
> access_log /var/log/nginx/myhost.com.access.log combined;
>
> root /home/spark/myhost.com/web;
> try_files $uri /index.php;
>
> set $cache_uri $request_uri;
> if ($request_method = POST) {
> set $cache_uri 'null cache';
> }
> location ~ \.php$ {
> try_files $uri =404;
> fastcgi_split_path_info ^(.+\.php)(/.+)$;
> # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
>
> # With php5-fpm:
> fastcgi_pass unix:/var/run/php5-fpm.sock;
> fastcgi_index index.php;
> include fastcgi_params;
> fastcgi_param SCRIPT_FILENAME
$document_root$fastcgi_script_name;
>
> #debug request
> #echo_duplicate 1 $echo_client_request_headers;
> #echo "\r";
> #echo_read_request_body;
> #echo $request_body;
> }
> }
>
>
> The file exists and it is fed as you can see below when I restart nginx:
>
> root at vps190138:~# cat /var/log/nginx-error.log
> 2016/03/04 21:14:55 [notice] 13900#0: signal 3 (SIGQUIT) received, shutting
down
> 2016/03/04 21:14:55 [notice] 13902#0: gracefully shutting down
> 2016/03/04 21:14:55 [notice] 13902#0: exiting
> 2016/03/04 21:14:55 [notice] 13902#0: exit
> 2016/03/04 21:14:55 [notice] 13900#0: signal 15 (SIGTERM) received, exiting
> 2016/03/04 21:14:55 [notice] 13902#0: signal 15 (SIGTERM) received, exiting
> 2016/03/04 21:14:55 [notice] 13900#0: signal 17 (SIGCHLD) received
> 2016/03/04 21:14:55 [notice] 13900#0: worker process 13902 exited with code
0
> 2016/03/04 21:14:55 [notice] 13900#0: exit
> 2016/03/04 21:14:55 [notice] 13949#0: using the "epoll" event method
> 2016/03/04 21:14:55 [notice] 13949#0: nginx/1.8.1
> 2016/03/04 21:14:55 [notice] 13949#0: OS: Linux 3.13.0-66-generic
> 2016/03/04 21:14:55 [notice] 13949#0: getrlimit(RLIMIT_NOFILE): 1024:4096
> 2016/03/04 21:14:55 [notice] 13950#0: start worker processes
> 2016/03/04 21:14:55 [notice] 13950#0: start worker process 13952
> root at vps190138:~#
Do you have other configuration files in your /etc/nginx/conf.d/ and
/etc/nginx/sites-enabled/ directories, which are included in your nginx.conf?
wbr, Valentin V. Bartenev
More information about the nginx
mailing list