httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florent Georges <li...@fgeorges.org>
Subject Re: [users@httpd] Redirect a whole site from port 80 to a servlet container
Date Wed, 25 Mar 2009 15:44:13 GMT

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/






















      

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message