Re: what should be in the proxy directive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 29 Dec 2009, at 10:38, robert rottermann wrote:

> Hi there,
> 
> I set up an apache on a debian lenny.
> I do have a virtual host that uses the redirect module.

Ugly!

> Now all access to that virtual host is blocked.
> only when I alter the config file of the proxy module to allow access from
> everywhere I can access the site:

That's what you (usually) want for a reverse proxy.

> <IfModule mod_proxy.c>

Drop <IfModule>.  It only serves to confuse, if you're editing your config 
"by hand" (as opposed to purely with tools like debian's a2enmod).

> now this is for sure wrong.
> So could somebody please give me a hint what should be in the <Proxy /> stanza?

You're confusing forward and reverse proxies.  Forward proxies are
dangerous and need to be restricted, but you've correctly set
ProxyRequests Off, so you don't have a forward proxy.  Reverse 
proxies are, to all intents and purposes, equivalent to origin servers.

But put all your proxy directives inside the <VirtualHost>.
And <Proxy> is usually a bad idea: use <Location> instead.

-- 
Nick Kew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux