Skip to content.
Sections

Quantum Magic & Love Quarks

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

History for plone_on_apache

Hmm Ignore the QuestionMarks !
changed:
-
<div style="white-space:pre">
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)

&lt;VirtualHost *&gt;
    ServerName mysite.com
    ServerAlias www.mysite.com
    ServerAdmin webmaster@mysite.com

    &lt;LocationMatch "^[^/]"&gt;
      Deny from all
    &lt;/LocationMatch&gt;

 &lt;IfModule mod_rewrite.c&gt;
   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]

 &lt;/IfModule&gt;



# 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
&lt;/VirtualHost&gt;

 &lt;VirtualHost *&gt;
    ServerName myothersite.com
    ServerAlias www.myothersite.com
    ServerAdmin webmaster@myothersite.com

    &lt;LocationMatch "^[^/]"&gt;
      Deny from all
    &lt;/LocationMatch&gt;

 &lt;IfModule mod_rewrite.c&gt;
   RewriteEngine On

   RewriteRule ^/(.*) \
      http://localhost:8080/VirtualHostBase/http/%{SERVER_NAME}:80/Plone2/VirtualHostRoot/$1 [L,P]

 &lt;/IfModule&gt;

ErrorLog /var/www/myothersite.com/logs/error_log
CustomLog /var/www/myothersite.com/logs/access_log combined

    &lt;/VirtualHost&gt;
 &lt;VirtualHost *&gt;
    ServerName clientsite.com
    ServerAlias www.clientsite.com
    ServerAdmin webmaster@clientsite.com

    &lt;LocationMatch "^[^/]"&gt;
      Deny from all
    &lt;/LocationMatch&gt;

 &lt;IfModule mod_rewrite.c&gt;
   RewriteEngine On

   RewriteRule ^/(.*) \
      http://localhost:8080/VirtualHostBase/http/%{SERVER_NAME}:80/Plone3/VirtualHostRoot/$1 [L,P]

 &lt;/IfModule&gt;

ErrorLog /var/www/clientsite.com/logs/error_log
CustomLog /var/www/clientsite.com/logs/access_log combined

    &lt;/VirtualHost&gt;

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
</div>

From pf Mon Sep 4 16:12:36 -0500 2006
From: pf
Date: Mon, 04 Sep 2006 16:12:36 -0500
Subject: Hmm Ignore the QuestionMarks !
Message-ID: <20060904161236-0500@www.fraterdeus.com>


 

Powered by Plone