[Setup] Re: Apache2 rewrite problems
S. David Sheeks
sdsheeks at gmail.com
Mon Feb 13 20:33:04 UTC 2006
Actually this is what I came up with. You'll need mod_rewrite and mod_proxy
installed and uncommented
<VirtualHost *:80>
ServerAlias domain.com
ServerAlias domain.com
ServerAdmin webmaster@ domain.com
ServerSignature On
DocumentRoot "/var/www/localhost/htdocs"
CustomLog /var/log/apache2/example.org-access.log combined
ErrorLog /var/log/apache2/example.org-error.log
LogLevel warn
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^/mychat(.*) - [L]
RewriteRule ^/(.*) \
http://127.0.0.1:10080/VirtualHostBase/http/%{SERVER_NAME}:80/vname/VirtualH
ostRoot/$1 [P,L]
</IfModule>
Port 10080 is your zope port and vname is your virtual host monster id
If you need help with this email me and I'll see what I can do.
Dave
-----Original Message-----
From: setup-bounces at lists.plone.org [mailto:setup-bounces at lists.plone.org]
On Behalf Of Dan Thomas
Sent: Monday, February 13, 2006 3:19 PM
To: setup at lists.plone.org
Subject: [Setup] Re: Apache2 rewrite problems
Ollie Acheson <oacheson at ...> writes:
>
> I am a new zope and plone user. My configuration is linux 2, python 2.4.2,
> zope 2.9.0 and plone 2.1.2. Zope and plone appear to be working fine when
> accessed through port 8080. My problem relates to using apache2 and
rewrite
> rules to access virtual domains via port 80, i.e., no port as part of the
> address.
>
> <IfModule mod_proxy.c>
> ProxyVia On
> <LocationMatch "^[^/]">
> Deny from all
> </LocationMatch>
> </IfModule>
>
> </VirtualHost>
> -------------------------- end apache2 config file --------------------
This was someone else' solution:
_____
The proxy destination must be specifically allowed by the httpd.conf file,
using
a line like this:
<IfModule mod_proxy.c>
<Directory proxy:http://localhost:8080/>
Order deny,allow
Allow from all
</Directory>
</IfModule>
_____
Also, Zope 2.1x is not supported with Zope 2.90, try 2.8x or 2.7x instead.
Hope that helps!
Dan
_______________________________________________
Setup mailing list
Setup at lists.plone.org
http://lists.plone.org/mailman/listinfo/setup
More information about the Setup
mailing list