Forum Moderators: phranque

Message Too Old, No Replies

Two webservers on one LAN problem

         

Bloodrule

9:40 pm on Jan 10, 2011 (gmt 0)

10+ Year Member



I have two webservers (server 1 and server 2) on a LAN and have setup ProxyPass to direct certain incoming requests to server 2. My problem is that when a page is served from server 2, all of its HTML content (colour, images etc) is missing and clicking any links on that page leads to "not found" error messages.

How do I configure the two servers so that when traffic is directed to server 2, only server 2 can serve the relevant files?

I am struggling with knowing what the relevant directives are to fix the HTML mapping.

I am using Ubuntu Server 10.04.

Brett_Tabke

12:09 am on Jan 13, 2011 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



How is the traffic being routed? Just ip address? Or is there dns/local domain name resolution involved?

Bloodrule

5:39 am on Jan 13, 2011 (gmt 0)

10+ Year Member



The traffic is being routed using the IP addresses on the LAN eg 192.168.0.155

jdMorgan

5:47 pm on Jan 14, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It sounds like the ProxyPass directive is not sufficiently comprehensive to proxy all included-object URL requests to the back-end. Or possibly you need to add ProxyPassReverse and/or ProxyPreserveHost. Or perhaps the URLs in the included-object links are simply incorrect.

Jim

Brett_Tabke

6:15 pm on Jan 14, 2011 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



or setup a local dns to resolve the two servers in to pseudo domain names.

We do that here. I have webmasterworld.brett.com and pubcon.brett.com that resolve locally to 2 different boxes for everyone on the network. I use that for local web developement then.