php - Laravel 4: 502 Bad Gateway with Nginx only in one view -
i have strange error in server nginx because working on project many months , working fine except 1 view/page added because showing me 502 bad gateway don't why.
- i deleted whole html of view print simple text same
- i removed whole functionality controller render view same
- i changed route , name of controller same
i have tried many things problem still persisting , in log of server block showing this:
nginx server block error log
2015/08/05 08:25:42 [error] 2423#0: *885 recv() failed (104: connection reset peer) while reading response header upstream, client: 187.189.190.62, server: stage.mywebsite.com, request: "get /business/user/site.com/edit http/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "stage.mywebsite.com", referrer: "http://stage.mywebsite.com/business"
php-fpm error log
[05-aug-2015 08:25:42] warning: [pool www] child 6825 exited on signal 11 (sigsegv) after 28731.872473 seconds start
[05-aug-2015 08:25:42] notice: [pool www] child 12469 started
and that's all
now i'm going show nginx configurations block , nginx.conf
nginx.conf
user nginx; worker_processes 1; worker_rlimit_nofile 1024; pid /var/run/nginx.pid; error_log /var/log/nginx/error.log; events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type application/octet-stream; access_log /var/log/nginx/access.log; sendfile on; server_tokens on; types_hash_max_size 1024; types_hash_bucket_size 512; server_names_hash_bucket_size 64; server_names_hash_max_size 512; keepalive_timeout 65; tcp_nodelay on; gzip on; gzip_disable "msie [1-6]\.(?!.*sv1)"; include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites-enabled/*; }
nginx server block
server { listen *:80; server_name stage.mywebsite.com; root /var/www/website_stage/current/src/public/; set $maintenance "off"; if ($maintenance = "on") { return 503; } index index.php; access_log /var/log/nginx/stage.mywebsite.com.access.log combined; error_log /var/log/nginx/stage.mywebsite.com.error.log; location ~ \.php$ { root /var/www/website_stage/current/src/public/; include /etc/nginx/fastcgi_params; fastcgi_pass 127.0.0.1:9000; fastcgi_param script_filename $document_root$fastcgi_script_name; fastcgi_index index.php; } location / { root /var/www/website_stage/current/src/public/; rewrite ^/(.+)/$ /$1 permanent; try_files $uri $uri/ /index.php?query_string; } }
i'm using nginx 1.8 on centos 7.
i hope can me.
Comments
Post a Comment