Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 06-07-2010, 12:48 PM   #1
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Rep: Reputation: 39
css and java script is broken Zope running behind an apache reverse proxy

a reverse proxy scenario

Server A              Server B (Zope Application)
Public IP  
On the first one that is A in Apache vhost file I made
ProxyPass /

ProxyPassReverse /
but the CSS and images on internet which people are accessing are broken while it is running perfectly fine if I access on LAN.

I have checked the

documentation page

here also

but still the problem persists.

Also on LAN if the same is accessed like this
then CSS and Java script is broken.
It is an eduCommons CMS.
Which I am trying to access via internet.
Any one who have used Zope please let me know if I have done any mistake above?

Last edited by tkmsr; 06-07-2010 at 12:50 PM.
Old 06-14-2010, 06:39 AM   #2
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Original Poster
Rep: Reputation: 39
I was able to solve this.
Here is a sample configuration
In my case the Apache server and eduCommons were physically different also I did not had a Local DNS entry for internal server where eduCommons was present.
So on the front end Apache I needed to have in /etc/hosts
a line which tells
is mapped to which IP on LAN internally.So that when you forward a request HTTP_HOST it does not start querying
DNS on internet.

The correct format on Server A is
ProxyPass   URL_B_Where_eduCommons_is:8080/VirtualHostBase/http/%{HTTP_HOST}:80/VirtualHostRoot/eduCommons 
ProxyPassReverse   URL_B_Where_eduCommons_is:8080/http/%{HTTP_HOST}:80/VirtualHostRoot/eduCommons
Where HTTP_HOST is what the client on internet requested.
I did not had a local DNS entry to point HTTP_HOST to my URL_B where eduCommons is.
So in /etc/hosts
URL_B should be mapped to HTTP_HOST.
Then URL_B in proxy pass directive should not have IP address.
You can use HTTP_HOST also provided you mapped HTTP_HOST with URL_B_Where_eduCommons_is .
Do not include the port number to map.

Some links which helped

Last edited by tkmsr; 06-14-2010 at 06:41 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache as Reverse Proxy LR_Brian Linux - Server 4 02-17-2009 11:33 AM
Apache reverse proxy noir911 Linux - Server 0 02-05-2008 08:21 PM
reverse proxy with apache 2 bootiack Linux - Software 1 08-09-2005 06:47 PM
apache reverse proxy wildbob Linux - Networking 8 10-15-2003 12:16 PM
apache Reverse Proxy !!!!! ashish_v Linux - Software 0 09-05-2003 04:42 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:47 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration