RE: Redirect a whole site from port 80 to a servlet container

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have an example on my internal portal at home.

If visit http://192.168.1.225/ I get the main portal.

If I visit http://192.168.1.225/myapplication/ I am actually loading
content from my second webserver, http://192.168.1.100:12345/ although
my browser still reads http://192.168.1.225/myapplication/.

The ProxyPass entry in my .conf is simply:
ProxyPass       /myapplication/  http://192.168.1.100:12345/

That's it!

If it makes any difference at all, I am running Apache2.2 installed from
a package manager (yast) running on OpenSuse11.0.

Although I can't see how apache functions/directives etc would vary from
one distro to another unless you're running it on Windows.

Rich



-----Original Message-----
From: Florent Georges [mailto:lists@xxxxxxxxxxxx] 
Sent: 25 March 2009 15:44
To: users@xxxxxxxxxxxxxxxx; Richard Peacock
Subject: Re:  Redirect a whole site from port 80 to a
servlet container


Richard Peacock wrote:

> Suppose the local server has address http://example.com/; then

> ProxyPass /mirror/foo/ http://backend.example.com/

> will cause a local request for
> http://example.com/mirror/foo/bar to be
> internally converted into a proxy request to
> http://backend.example.com/bar.

  Ok, I understand.  That's because requests are sent to the same
domain name (even if proxying evolves a sub domain) I think.  My
problem is slightly different:

    - original site:
        http://www.original.com/
        http://www.original.com/index.html
        http://www.original.com/bla/bla.html
        http://www.original.com/...

    - new site:
        http://www.new.com/
        http://www.new.com/index.html
        http://www.new.com/foo/bar.html
        http://www.new.com/...

      must be proxied to resp.:
        http://localhost:1234/ctnr/app/
        http://localhost:1234/ctnr/app/index.html
        http://localhost:1234/ctnr/foo/bar.html
        http://localhost:1234/ctnr/app/...

  Regards,

-- 
Florent Georges
http://www.fgeorges.org/






















      


**********************************************************************
Privileged/Confidential Information may be contained in this 
message. If you are not the addressee indicated in this 
message (or responsible for delivery of the message to such 
person), you must not copy, distribute or take any action in 
reliance to it.
In such case, you should destroy this message and kindly 
notify the sender by reply email. Please advise immediately 
if you or your employer do not consent to Internet email for 
messages of this kind. Opinions, conclusions and other 
information in this message that do not relate to the official 
business of Minorplanet Systems plc shall be understood as 
neither given nor endorsed by it. Minorplanet Systems plc, Registration no: 3372097
Minorplanet Limited, Registration no: 4072786
Greenwich House, 223 North Street, Leeds, LS7 2AA
VAT #: 698 1438 86
********************************************************************** 
 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux