[ale] Apache proxy problems
Jerald Sheets
jsheets at yahoo.com
Thu Jun 22 07:26:12 EDT 2006
Hey, don't forget that you want to secure your server on the edge
like this:
<Proxy *>
Order Deny,Allow
Deny from all
Allow from 192.168.0
</Proxy>
The definition of what you're trying to do is called "reverse
proxy". From the Apache docs, a sample config would be:
Reverse Proxy
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /foo http://foo.example.com/bar
ProxyPassReverse /foo http://foo.example.com/bar
Don't forget that there's some mod_cache goodness in there as well...
This guy here:
http://httpd.apache.org/docs/2.0/mod/mod_proxy.html
Lays out all your directive fun to play with.
Good luck!
On Jun 22, 2006, at 12:47 AM, runman wrote:
> ok, I have a single public ip address xxx.xxx.xxx.xxx, 2 web servers
> (webserver1 and webserver2) and 3 domains (www.domain1.com ,
> www.domain2.com
> , and www.domain3.com)
>
> webserver1 hosts the following sites : www.domain1.com ,
> www.domain2.com
> webserver2 hosts the following sites : www.domain3.com
>
> I have the following network topology :
> INTERNET <--> FIREWALL <--> switch <--> webserver1
> switch <--> webserver2
>
> I am using OpenBSD's Apache for webserver1 and FreeBSD's lighttpd for
> webserver2
>
> What I want is for webserver1 to proxy www.domain3.com or in other
> words
> when a person on the Internet hits my static ip and is directed to
> webserver1 then that box will proxy their requests (and the
> returns) to
> webserver2
>
> However I think I am getting lost in the syntax of apache proxying.
>
> Here is what I have in my httpd.conf that is relative to this
> problem :
>
> LoadModule proxy_module
>
> # Proxy Directives
> ProxyPass www.domain3.com http://<ip address of webserver2>
> ProxyPassReverse www.domain3.com http://<ip address of webserver2>
>
> and I get a big fat
> Network error
> Unable to request URL from host www.domain3.com:80: Connection refused
>
> Can what I want even be done ? or should I use Squid to proxy this
> mess ?
>
> All hints and constructive comments welcome.
>
> Greg
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.394 / Virus Database: 268.9.2/370 - Release Date:
> 6/20/2006
>
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ale
mailing list