Welcome! Log In Create A New Profile

Advanced

Re: .htaccess issues

Guilherme
February 10, 2012 12:58PM
Antonio,

I'm using apache as a back-end, and I need to keep .htaccess files in
apache, because this is a shared web hosting server and it's hosting ~
thousand websites.

The problem is that nginx is serving content allowed just for some IPs, for
everyone, after this content is cached.

On Fri, Feb 10, 2012 at 3:32 PM, António P. P. Almeida <appa@perusio.net>wrote:

> On 10 Fev 2012 17h08 WET, guilherme.e@gmail.com wrote:
>
> > I'm starting to use nginx as a proxy/cache (apache back-end), and
> > I've a problem regarding directories that uses .htaccess to restrict
> > access by ip (allow,deny).
> >
> > The first time when a allowed IP access this area (i.e. /downloads),
> > the object is cached, but when a unauthorized IP access the same
> > dir, it gets the object from cache.
> >
> > Is there a way to deal with that?
>
> At the http level:
>
> geo $not_allowed {
> default 1;
> 127.0.0.1 0;
> 192.168.45.0/24 0;
> }
>
> Then add in the cache config:
>
> proxy_cache_bypass $not_allowed;
>
> --- appa
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

.htaccess issues

Guilherme February 10, 2012 12:10PM

Re: .htaccess issues

António P. P. Almeida February 10, 2012 12:34PM

Re: .htaccess issues

Guilherme February 10, 2012 12:58PM

Re: .htaccess issues

António P. P. Almeida February 10, 2012 01:10PM

Re: .htaccess issues

Adrián Navarro February 10, 2012 01:10PM

Re: .htaccess issues

Guilherme February 10, 2012 02:42PM

Re: .htaccess issues

António P. P. Almeida February 10, 2012 03:00PM

Re: .htaccess issues

geberhart February 12, 2012 10:34AM

Re: .htaccess issues

António P. P. Almeida February 13, 2012 12:58PM

Re[4]: .htaccess issues

Max February 14, 2012 02:50AM

Re: Re[4]: .htaccess issues

António P. P. Almeida February 14, 2012 09:34AM

Re: Re[4]: .htaccess issues

António P. P. Almeida February 14, 2012 09:54AM

Re: Re[4]: .htaccess issues

geberhart February 14, 2012 11:48AM

Re[4]: .htaccess issues

Max February 12, 2012 08:06PM

Re[4]: .htaccess issues

Max February 12, 2012 08:10PM

Re[2]: .htaccess issues

Max February 10, 2012 03:10PM

Re: Re[2]: .htaccess issues

geberhart February 12, 2012 10:38AM

Re: .htaccess issues

Francis Daly February 12, 2012 11:50AM

Re[2]: .htaccess issues

Max February 13, 2012 04:14PM

Re: Re[2]: .htaccess issues

António P. P. Almeida February 13, 2012 04:46PM

Re[6]: .htaccess issues

Max February 14, 2012 07:38PM

Re: .htaccess issues

Piotr Sikora February 14, 2012 09:06PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 318
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready