You are here: Home Posts Plone with Apache Front End on Ubuntu

Plone with Apache Front End on Ubuntu

by Nathan Van Gheem last modified Jan 03, 2009 12:47 PM
How you can use apache to manage multiple plone instances and take care of the ugly urls

Ubuntu Setup

apt-get install apache2
a2enmod rewrite
a2enmod proxy

Apache HTTP file

NameVirtualHost *
<VirtualHost *>
    ServerAlias server.com
    ServerSignature On
    RewriteEngine on
    RewriteRule ^/(.*) http://localhost:8080/VirtualHostBase/http/server.com:80/Site/VirtualHostRoot/$1 [P,L]
</VirtualHost>

 proxy.conf

<IfModule mod_proxy.c>
    #turning ProxyRequests on and allowing proxying from all may allow
    #spammers to use your proxy to send email.
    ProxyRequests Off
    <Proxy *>
         #AddDefaultCharset off
         Order deny,allow
         Allow from allow
         #Deny from all
         #Allow from 127.0.0.1 
    </Proxy>
    # Enable/disable the handling of HTTP/1.1 "Via:" headers.
    # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
    # Set to one of: Off | On | Full | Block
        
    ProxyVia On
</IfModule>

 

 

Document Actions