Help with convert .htaccess to nginx :(
Giang
nginx-forum at nginx.us
Fri Oct 28 03:58:01 UTC 2011
Thank you. I've changed as you suggested, but it still hasn't worked.
When I clicked Next button, it just reloaded the page.
Here is my new nginx configuration file content:
location ~ \.(lock|conf)$ { deny all; }
location ~ pre_.+\.php$ { deny all; }
location ~ /[^.]+$ {
try_files $uri $uri/ $uri.html /index.php;
}
location ~ \.php(/.+)$ {
fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
fastcgi_param SCRIPT_FILENAME
/var/www/siwapp/web$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
}
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,217447,217451#msg-217451
More information about the nginx
mailing list