Help!!! Virtual Hosting Zope behind Apache
I'm starting to get desperate: seems none of the Virtual Hosting how-to's fit my needs :-( I simply need to make Apache 1.3.27 (with mod_rewrite & mod_proxy loaded) redirect port 8080 to port 80. So my Zope CMF sites run on www.planetinterior.be:8080/foo & rmw.planetinterior.be:8080/foo2, but I need it to be known to the outside world as www.planetinterior.be/foo & rmw.planetinterior.be/foo2. Below you can find the last lines of my httpd.conf: NameVirtualHost 194.78.49.253 <VirtualHost 194.78.49.253> ServerName www.planetinterior.be RewriteEngine On RewriteRule ^/(.*) http://localhost:8080/VirtualHostBase/http/%{HTTP_HOST}:80/$1 [L,P] </VirtualHost> </IfDefine> What can be wrong? VHM is installed in the root. Is it the order of things to install, or restarting (though i tried this already, Apache & zope) Since this is a production site, i need to be up & running ASAP! Thanks in advance, _______________________________________________ Tim Willems - Architect Planet Interior bvba Brouwerijstraat 16 2200 Noorderwijk Belgium mob: +32 (0)496 532377 tel: +32 (0)14 279396 fax: +32 (0)14 264790 email: tim@planetinterior.com portfolio: www.planetinterior.com This email and any attached files are confidential and may be legally privileged. If you are not the intended recipient, any disclosure, reproduction, copying, distribution, or other dissemination or use of this communication is strictly prohibited. If you have received this transmission in error please notify the sender immediately and then delete this email. Email transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore is in no way liable for any errors or omissions in the content of this message, which may arise as a result of email transmission. If verification is required, please request a hard copy.
You didn't mention what it is about your setup that isn't working, but I'd suspect one or more of the following: 1. You have no VirtualHostRoot in your RewriteRule 2. You're matching on IP... try matching *. 3. You included the end of an IfDefine... are you sure the test enclosing your virtual host block works correctly? 4. Is this IP the second (or greater) IP being served by Apache? You'll need to explicitly tell Apache to listen for it. Problem 1 is the most obvious, but shouldn't prevent you from hitting a page... it will (usually) cause all subsequent graphics and links to be broken, though. Either of the other three problems would probably result in the site not being seen at all. If that doesn't help, please describe your problem in greater detail. HTH, Dylan
OK stupid me ;-) I included my VirtualHost rules between the wrong <IfDefine> tags :-p I invite the whole Zope-community for a 1 minute laugh! Thanks everyone anyway! Tim -----Oorspronkelijk bericht----- Van: Dylan Reinhardt [mailto:zope@dylanreinhardt.com] Verzonden: maandag 11 augustus 2003 16:21 Aan: Tim Willems CC: zope@zope.org Onderwerp: Re: [Zope] Help!!! Virtual Hosting Zope behind Apache You didn't mention what it is about your setup that isn't working, but I'd suspect one or more of the following: 1. You have no VirtualHostRoot in your RewriteRule 2. You're matching on IP... try matching *. 3. You included the end of an IfDefine... are you sure the test enclosing your virtual host block works correctly? 4. Is this IP the second (or greater) IP being served by Apache? You'll need to explicitly tell Apache to listen for it. Problem 1 is the most obvious, but shouldn't prevent you from hitting a page... it will (usually) cause all subsequent graphics and links to be broken, though. Either of the other three problems would probably result in the site not being seen at all. If that doesn't help, please describe your problem in greater detail. HTH, Dylan
participants (2)
-
Dylan Reinhardt -
Tim Willems