NGINX Ajax - PHP 404 Error -


i have written simple ajax function communicates php web service. works fine in local (iis + php) , in production environment ajax call php file throws 404 error (not found)

this seems ngnx config issue , pasting relevant nginx config

server {         listen       80 default_server;         listen       [::]:80 default_server;         server_name  _;         root         /usr/share/nginx/html;          # load configuration files default server block.         include /etc/nginx/default.d/*.conf;          location / {         }          error_page 404 /404.html;             location = /40x.html {         }          error_page 500 502 503 504 /50x.html;             location = /50x.html {         }          # pass php scripts fastcgi server listening on 127.0.0.1:9000      location ~ \.php$ {         root           /usr/share/nginx/html;         fastcgi_pass   127.0.0.1:9000;         fastcgi_index  index.php;         fastcgi_param  script_filename   $document_root$fastcgi_script_name;         include        fastcgi_params;     }    

please suggest work around.


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -