Rewrite except for single uri
Ray
gunblad3 at gmail.com
Tue Aug 4 05:39:51 MSD 2009
Yes there is:
http://wiki.nginx.org/NginxHttpRewriteModule#rewrite
Main page:
http://wiki.nginx.org/NginxModules
Ray
On Tue, Aug 4, 2009 at 7:22 AM, Edward Stow <ed.stow at gmail.com> wrote:
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20090804/5f828454/attachment.html>
More information about the nginx
mailing list