LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

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

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


Hi,
a reverse proxy scenario

Code:
Server A              Server B (Zope Application)
Public IP            192.168.1.5
On the first one that is A in Apache vhost file I made
Code:
ProxyPass / http://192.168.1.5:8080/VirtualHostBase/http/192.168.1.5:8080/virtual_hosting/VirtualHostRoot/eduCommons

ProxyPassReverse / http://192.168.1.5:8080/VirtualHostBase/http/192.168.1.5:8080/virtual_hosting/VirtualHostRoot/eduCommons
but the CSS and images on internet which people are accessing are broken while it is running perfectly fine if I access on LAN.

as
Code:
http://192.168.1.5:8080/VirtualHostBase/http/192.168.1.5:8080/virtual_hosting/VirtualHostRoot/application
I have checked the

documentation page

and
here also

but still the problem persists.

Also on LAN if the same is accessed like this
Code:
http://192.168.1.5:8080/VirtualHostBase/http/192.168.1.5:80/VirtualHostRoot/eduCommons
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
tkmsr
Member
 
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Original Poster
Rep: Reputation: 38
I was able to solve this.
Here is a sample configuration
file.
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
http://ocw.mydomain.com
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
Code:
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
http://cle2.it-inwent.net/Info/platform/install/apache
http://zope.org/Documentation/Books/...ualHosting.stx

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


Reply


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


All times are GMT -5. The time now is 11:15 PM.

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