Skip to content.
Sections

Quantum Magic & Love Quarks

Personal tools
You are here: Home » Notes » plone_on_apache
 
Views

plone_on_apache

Document Actions
last edited 1 year ago by pf
This is dependent on how the apache virtual host is set up, as well as the DNS for the host. qv: my set up (all running on the same RH9 server) has a master Zope management domain on port 8080. All the Plone instances can be accessed indirectly through this instance, a la: DNS for mysite.com, myothersite.com and myclientsite.com are all pointing www. to the same place (in my case the record looks like ... $ORIGIN mysite.com. www IN CNAME virtual.myserver.net. ... ) http://my.site.com:8080/Plone1 is http://www.mysite.com/ http://my.site.com:8080/Plone2 is http://www.myothersite.com/ http://my.site.com:8080/Plone3 is http://www.clientsite.com/ (Each of the plones can also be accessed for management as http://www.myothersite.com/manage without giving any access to the Zope foundation management.) In Apache vhost.conf (or wherever the vhosts are set up, sometimes in httpd.conf) (from this How To) <VirtualHost? *> ServerName? mysite.com ServerAlias? www.mysite.com ServerAdmin? webmaster@mysite.com <LocationMatch? "^[^/]?"> Deny from all </LocationMatch?> <IfModule? mod_rewrite.c> RewriteEngine? On # note here that with a rewrite rule and pattern matching, we can have a particular URI match a different server (say for certain directories to be served directly from Apache, or some other service) RewriteRule? ^/html/(.*) http://www-old.domain.org/html/$1 [L,P]? # the backslash \\ allows the line to be broken in two shorter lines RewriteRule? ^/(.*) \ http://localhost:8080/VirtualHostBase/http/%{SERVER_NAME}:80/Plone1/VirtualHostRoot?/$1 [L,P]? </IfModule?> # the old ProxyPass? method..... # ProxyPass? / http://localhost:8080/VirtualHostBase/http/www.mysite.com:80/Plone1/VirtualHostRoot/ # ProxyPassReverse? / http://localhost:8080/VirtualHostBase/http/www.mysite.com:80/Plone1/VirtualHostRoot/ ErrorLog? /var/www/mysite.com/logs/error_log CustomLog? /var/www/mysite.com/logs/access_log combined </VirtualHost?> <VirtualHost? *> ServerName? myothersite.com ServerAlias? www.myothersite.com ServerAdmin? webmaster@myothersite.com <LocationMatch? "^[^/]?"> Deny from all </LocationMatch?> <IfModule? mod_rewrite.c> RewriteEngine? On RewriteRule? ^/(.*) \ http://localhost:8080/VirtualHostBase/http/%{SERVER_NAME}:80/Plone2/VirtualHostRoot?/$1 [L,P]? </IfModule?> ErrorLog? /var/www/myothersite.com/logs/error_log CustomLog? /var/www/myothersite.com/logs/access_log combined </VirtualHost?> <VirtualHost? *> ServerName? clientsite.com ServerAlias? www.clientsite.com ServerAdmin? webmaster@clientsite.com <LocationMatch? "^[^/]?"> Deny from all </LocationMatch?> <IfModule? mod_rewrite.c> RewriteEngine? On RewriteRule? ^/(.*) \ http://localhost:8080/VirtualHostBase/http/%{SERVER_NAME}:80/Plone3/VirtualHostRoot?/$1 [L,P]? </IfModule?> ErrorLog? /var/www/clientsite.com/logs/error_log CustomLog? /var/www/clientsite.com/logs/access_log combined </VirtualHost?> Of course, if you can't set up the DNS for individual domains, the path name (Plone, or whatever it ends up being called in the ZMI) has to follow the host name, or the proxy will point to the ZMI instead. From pf Fri Apr 15 13:44:57 -0500 2005 From: pf Date: Fri, 15 Apr 2005 13:44:57 -0500 Subject: Link to the Plone.org How To Message-ID: <20050415134457-0500@plone.fraterdeus.com> http://members.plone.org/documentation/how-to/plone-with-apache-1.3/howto_view
Hmm Ignore the QuestionMarks? ! --pf, Mon, 04 Sep 2006 16:12:36 -0500 reply
 

Powered by Plone