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

Re: Apache proxy?



On Wed, 03 Mar 2004 20:47:09 -0000, Jeff <jeff virgin net> wrote:

On Tue, 2 Mar 2004 21:42:49 +0100, Jeff <jeff virgin net> wrote:

Hi All,

Does anyone know how to configure apache to proxy stuff off my LAN? i.e. I have a webserver running on one of the boxes LAN and I need to be able to go to http://mydomain.com/newdirectory/ (or http://newdirectory.mydomain.com with virtual hosting) and need apache to proxy content from 192.168.0.5:80 to the
outside world.

A bit of an odd setup but i think the proxy engine in apache should be able to
do it - anyone know what to put in httpd.conf?

I'm running Apache/2.0.40

Thanks
Jeff





OK, managed to get it sort of working with the config below..

ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /feeds http://192.168.0.2
ProxyPassReverse /feeds http://192.168.0.2


It proxys the html data OK but all the images are missing. Any more suggestions?

Jeff




My apologies - it looks like the URLs are getting screwed up - the links on the pages are all missing the /feeds/ directory - the application is expecting to be at the root level.

For example - www.mydomain.com/feeds contains a link to www.mydomain.com/example.gif when the correct URL is www.mydomain.com/feeds/example.gif

The only way around this I can think of is virtual hosts, i.e. id have feeds.mydomain.com instead of www.mydomain.com/feeds

Anyone know a way around this?

Thanks
Jeff





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