Files in location

B.R. reallfqq-nginx at yahoo.fr
Wed Feb 1 07:08:01 UTC 2012


Thanks,

It appeared that with some other tests my solution was working......
Browser cache troubles, it seems.
Sorry to have bothered you :o\

Thanks anyway,
---
*B. R.*


On Wed, Feb 1, 2012 at 01:02, António P. P. Almeida <appa at perusio.net>wrote:

> On 1 Fev 2012 05h32 WET, reallfqq-nginx at yahoo.fr wrote:
>
> > [1  <multipart/alternative (7bit)>]
> > [1.1  <text/plain; UTF-8 (7bit)>]
> > Hello,
> >
> > I would like to set up a rule redirecting the root location to
> > another address, but to serve files inside this location directly.
> > I tried the following: location = / { rewrite .* http://inter.net
> > permanent; }
>
> location = / {
>    return 301 http://inter.net;
> }
>
> location / {
>    # serve the files here without a redirect
> }
>
> --- appa
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20120201/16eaf9e9/attachment.html>


More information about the nginx mailing list