Re: Simple URI redirection / alias in Nginx…
pk899
nginx-forum at nginx.us
Tue May 31 02:56:39 MSD 2011
I have a similar issue.
Do we need separate location directives for each and every possible
path, or can we do some "rewrite" inside location for the main / root
folder? For example:
location = / {
# rewrite rules come here..
rewrite "^/adm$" "/wordpress/wp-login.php";
....
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME
/var/www/example.com/wordpress/wp-login.php
include /etc/nginx/fastcgi_params;
}
To me this is cleaner, but want to make sure that this is not the less
desirable way?
Thanks.
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,202235,202430#msg-202430
More information about the nginx
mailing list