Apache2 rewrite to zope/plone
Alex Mandel
tech_dev at wildintellect.com
Wed Aug 10 04:26:59 UTC 2005
I'm having loads of fun trying to get my rewrite rules to work with two
zope instances each belonging to a different url and on different ports.
The zope servers and apache run fine.
The best I can get though is my request for www.site.com and
www.site2.com that should go to zope:8080/site1 & zope:8380/site2 get
sent to zope:8380/site2/ error page both.
I wrote two virtual host files like so in sites-available and the made
symlinks in sites-enabled with $ln -s ../sites-available/site1
"
<VirtualHost *:80>
ServerName www.site1.com
ServerAlias site1.no-ip.com
ServerAdmin webmaster at site1.com
CustomLog /var/log/apache2/site1-access.log combined
ErrorLog /var/log/apache2/site1-error.log
LogLevel warn
RewriteEngine On
RewriteRule ^/(.*)
http://192.168.1.105:8080/site1/VirtualHostBase/http/www.site1.com:80/VirtualHostRoot/$1/
[L,P]
</VirtualHost>
"
I then added symlinks in the same manner to mods-enabled for
rewrite.load and proxy.load
The log file for site2 shows all the activity.
Does anyone have an apache2.conf and sites-available config file working
that I can use as a template.
Thanks - Alex
More information about the ubuntu-users
mailing list