Rewrite except for single uri
Edward Stow
ed.stow at gmail.com
Tue Aug 4 03:22:05 MSD 2009
2009/8/3 Igor Sysoev <is at rambler-co.ru>:
> root /srv/www/abc.tld/html;
>
> location = / {
> index buy.html;
> ssi on;
> }
>
> location = /buy.html {
> ssi on;
> }
>
> location / {
> rewrite ^ http://abc.tld/$request_uri?;
> }
>
Thanks, The / needed to be removed. Otherwise you end up with double slashes.
location / {
rewrite ^ http://abc.tld$request_uri?;
}
What does the question mark ? do.
Is there a page that describes all the special variables in nginx.
--
Edward Stow
More information about the nginx
mailing list