For what I can see your try_files line is redundant since this would simply return a 404 http status code if the file in the URI doesn't exist and that is just default behaviour. It might even be erroneous since try_files needs a list of files to try - I use like "try_files $uri $uri/ /index.php?q=$request_uri;" If I were you I'd remove the try_files line completely and enable debug logby morten - How to...
None of us gets paid for doing your job, and you don't learn anything from it. GIYF+RTFM: http://nginx.org/en/docs/http/converting_rewrite_rules.html How to ask questions the smart way: http://linuxsilo.net/docs/smart-questions_en.html When you have some actual code that troubles you I'd be happy to help.by morten - How to...
One solution could be to use the try_files method like the following server { .... location / { try_files $uri /index.php?uri=$request_uri; } location ~ \.php$ { include fastcgi_params; } ... } In short, this will make nginx server all actual files right away but instead of throwing a 404 on a request for "/@example" nginx will serve "/index.php?uri=@whatever" througby morten - How to...
Igor Sysoev Wrote: ------------------------------------------------------- .... > > An "alias" is incorrectly inherited in nested > locations. > This is the reason why the nested locations are > still not officially > supported. Probably this will help: > > location ~ ^/x/(.+\.php)$ { > alias /stat/$1; > fastcgi_pass 127.0.0.1:by morten - Nginx Mailing List - English
Output from nginx -t 2009/06/11 17:28:02 7240#0: the configuration file /etc/nginx/nginx.conf syntax is ok 2009/06/11 17:28:02 7240#0: the configuration file /etc/nginx/nginx.conf was tested successfullyby morten - How to...
Hey all, In our reverse proxies we would like to send all requests for *.domain1.com, *.domain2.com ... *.domainN.com to one server and requests for webmail.* to the mail front-end server (running SquirrelMail). The primary domain1.conf file for the domains look like this server { listen 80; server_name domain1.com *.domain1.com; access_log /var/log/nginx/domain1/access.log; locby morten - How to...