homepage Welcome to WebmasterWorld Guest from 54.204.73.126
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Apache Reverse Proxy (Same ProxyPass path but different Destination)
reverse proxy path
ku1918



 
Msg#: 4671173 posted 6:04 am on May 15, 2014 (gmt 0)

I have a problem here.

I am doing reverse proxy for few website in my test server.

So , what i have encounter here is that when i request the website from the client , both website request from the same path , thus only the leading ProxyPass will work , not the latter.

Here is my configuration .

ProxyPass /js http://example.com/js
ProxyPassReverse /js http://example.com/js

ProxyPass /js http://example.org/js
ProxyPassReverse /js http://example.org/js

My question is that how i can differentiate both of them.Because it will cause the second website unable to load the js scrips.

I have try Alias like

Alias /fjs /js
so it will come like

ProxyPass /fjs http://example.org/js
But the js script for the second website is still not working

 

phranque

WebmasterWorld Administrator phranque us a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



 
Msg#: 4671173 posted 12:54 am on May 17, 2014 (gmt 0)

welcome to WebmasterWorld, ku1918!


My question is that how i can differentiate both of them.

separate virtual host containers?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved