Apache/Zope port redirection basic questions...
I made Apache redirect certain URLs to a Zope/Plone site on port 8280 and it works. (e.g. mysite.com/lef --> mysite.com:8280/lefiss) Question #1: I'm not sure now what is the need for Plone/Zope's Virtual Host Monster??? Apache seems to take care of proxying/redirection BY ITSELEF!?!?!? Question #2: Zope/Plone site displays port 8280 in the client browser..... If Apache tries to *hide* the redirection....why does Zope/Plone reveal the true port and how tell ZOpe/Plone to hide this fact again? Thanks! Chris
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 seberino@spawar.navy.mil wrote:
I made Apache redirect certain URLs to a Zope/Plone site on port 8280 and it works.
(e.g. mysite.com/lef --> mysite.com:8280/lefiss)
Question #1: I'm not sure now what is the need for Plone/Zope's Virtual Host Monster??? Apache seems to take care of proxying/redirection BY ITSELEF!?!?!?
Question #2: Zope/Plone site displays port 8280 in the client browser..... If Apache tries to *hide* the redirection....why does Zope/Plone reveal the true port and how tell ZOpe/Plone to hide this fact again?
The answer to your second question is the answer to your first: the VirtualHostMonster allows the proxy to communicate the "real" URL to Zope, so that Zope can use it when generating URLs. Google "VirtualHostMonster Apache" to find out how to set this up (or create a VHM and read its fairly helpful configuration ZMI to start). Tres. - -- =================================================================== Tres Seaver +1 202-558-7113 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDNlL/+gerLs4ltQ4RAssJAJ9z4Nnxg/a7pngeoWFqCaBdKAPmVwCgmQWd M78sQrjzGfHZ3yGv7iKGRyo= =tZpS -----END PGP SIGNATURE-----
On 24.09.05 21:45:45, seberino@spawar.navy.mil wrote:
I made Apache redirect certain URLs to a Zope/Plone site on port 8280 and it works.
(e.g. mysite.com/lef --> mysite.com:8280/lefiss)
Question #1: I'm not sure now what is the need for Plone/Zope's Virtual Host Monster??? Apache seems to take care of proxying/redirection BY ITSELEF!?!?!?
That's right, but...
Question #2: Zope/Plone site displays port 8280 in the client browser..... If Apache tries to *hide* the redirection....why does Zope/Plone reveal the true port and how tell ZOpe/Plone to hide this fact again?
For exactly this you need the VHM, but not with the mapping-tab, but the 2 special URL-part VirtualHostBase and VirtualHostRoot. For example this small example hides the port and redirects the person viewing http://lsdbis:80 into the lsdbis subfolder VirtualHost lsdbis:80> RewriteRule ^/(.*) http://lsdbis:8280/VirtualHostBase/http/lsdbis:80/lsdbis/VirtualHostRoot/$1 [L,P] </VirtualHosst> Andreas -- That secret you've been guarding, isn't.
Use this: http://betabug.ch/zope/witch 2005/9/25, seberino@spawar.navy.mil <seberino@spawar.navy.mil>:
I made Apache redirect certain URLs to a Zope/Plone site on port 8280 and it works.
(e.g. mysite.com/lef --> mysite.com:8280/lefiss)
Question #1: I'm not sure now what is the need for Plone/Zope's Virtual Host Monster??? Apache seems to take care of proxying/redirection BY ITSELEF!?!?!?
Question #2: Zope/Plone site displays port 8280 in the client browser..... If Apache tries to *hide* the redirection....why does Zope/Plone reveal the true port and how tell ZOpe/Plone to hide this fact again?
Thanks!
Chris _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
-- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com
participants (4)
-
Andreas Pakulat -
Peter Bengtsson -
seberinoï¼ spawar.navy.mil -
Tres Seaver