The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > HP-UX
Google UNIX.COM


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
redirect STDIN prkfriryce Shell Programming and Scripting 4 01-04-2007 06:11 AM
How to redirect std out and std err to same file 0ktalmagik Shell Programming and Scripting 2 07-04-2006 04:04 PM
PHP Redirect perleo Shell Programming and Scripting 2 05-11-2003 08:17 AM
Redirect Xterm barisgultekin UNIX for Dummies Questions & Answers 1 07-18-2002 10:33 AM
Redirect <Therapy> IP Networking 1 03-20-2002 04:54 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-27-2008
Registered User
 

Join Date: Jan 2008
Posts: 17
Apache Redirect Transparently

I have two servers running apache server, namely server A and B.

All users access server A, but for some application, I would like to redirect the request to server B.

I have set apache redirect in server A apache config file.
Redirect /application http://serverB/application

Now, the flow becomes
1. Users input http://serverA/application
2. Redirect request to http://serverB/application
3. Users see the web page changed from http://serverA/application to http://serverB/application

Actually, I do not prefer users to see the web page changed. Is there any method that can redirect the request transparently to user?
Thank you!
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 03-27-2008
grial's Avatar
El UNIX es como un toro
 

Join Date: Jun 2006
Location: Madrid (Spain)
Posts: 531
Helo alfredo.
For that purposes, I usually use mod_proxy and configure Apache as a reverse proxy like this, on your serverA (for Apache 1.3):
Code:
ProxyRequests Off

<Directory proxy:*>
   Order Deny,Allow
   #Deny from all
   Allow from all
</Directory>

ProxyPass /application http://serverB/application
ProxyPassReverse /application http://serverB/application
Regards.
Reply With Quote
  #3 (permalink)  
Old 03-27-2008
Registered User
 

Join Date: Jan 2008
Posts: 17
Thank you very much!
This is exactly what I want.
Thanks!
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:44 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0