The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > 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 09:11 AM
How to redirect std out and std err to same file 0ktalmagik Shell Programming and Scripting 2 07-04-2006 07:04 PM
PHP Redirect perleo Shell Programming and Scripting 2 05-11-2003 11:17 AM
Redirect Xterm barisgultekin UNIX for Dummies Questions & Answers 1 07-18-2002 01:33 PM
Redirect <Therapy> IP Networking 1 03-20-2002 07:54 AM

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

Join Date: Jan 2008
Posts: 18
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
Sponsored Links
  #2 (permalink)  
Old 03-27-2008
grial's Avatar
grial grial is offline Forum Advisor  
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: 18
Thank you very much!
This is exactly what I want.
Thanks!
Reply With Quote
Google The UNIX and Linux Forums
Reply

Bookmarks

Tags
None

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:




All times are GMT -4. The time now is 12:30 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66