October 06, 2016 04:43PM
I was working with this config from 2 years without any problem

sudenly I face not found error message from niginx

and its come only when the link has "?", sample

if open the normal link, its working
http://firmware.gem-flash.com/[any other php file].php

site config (changed user info)

server {
listen *:80;
server_name firmware.gem-flash.com;
#error_log /var/log/nginx/firmware.gem-flash.com.log error;
rewrite_log on;
root /home/user/public_html/;

location / {
index index.php index.html index.htm ;

location ~*
^.+\.(jpg|jpeg|gif|css|html|png|js|ico|bmp|zip|rar|txt|pdf|doc)$ {
root /home/user/public_html/;
# expires max;
access_log off;

location ~ ^/.+\.php {
fastcgi_index index.php;
fastcgi_intercept_errors on;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_script_name;


Subject Author Posted

strange condition file not found nginx with php-fpm

ezak October 06, 2016 04:43PM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 155
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready