Hi all,
Right now I use this type of configuration:
[code]
location / {
try_files $uri $uri/ /index.php?q=$uri&$args;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
include fastcgi.conf;
}
[/code]
My goal is to eliminate the regex on php file names:
[code]
location / {
try_files $uri $uri/ @php;
}
location @php {
try_files $uri.php /index.php?q=$uri&$args /404.html;
fastcgi_pass 127.0.0.1:9000;
include fastcgi.conf;
}
[/code]
I'm not sure if this is the correct way to do it. Any suggestions are welcome.