[Zope] virtualhost/apache2 problem

zenobito zenobito zenobito at gmail.com
Wed Feb 1 20:39:42 EST 2006

I'm trying to set up apache2 to serve two sites, a "normal" one on
www.mysite.com and a zope one on www.mysite.com/zope (using rewrite rules).
I already know how to put apache2 in front of zope, but in this situation
something doesn't work: I read every howto's but when connecting to
http://www.mysite.com/zope I get a 404 error from apache2: it seems like
mysite.com comes first, so if there is no "zope" folder (actually it doesn't
exist), it gets an error.
I hope someone can help me.
This is my apache2 configuration file.


Apache2 conf:

NameVirtualHost *
<VirtualHost *>
    ServerAdmin webmaster at localhost

    DocumentRoot /var/www/www-docs
    ServerName www.mysite.com

        <Directory />
        Options FollowSymLinks
        AllowOverride None
    <Directory /var/www/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        allow from all
        # This directive allows us to have apache2's default start page
                # in /apache2-default/, but still have / go to the right
                # Commented out for Ubuntu
                #RedirectMatch ^/$ /apache2-default/

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
        AllowOverride None
        Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
        Order allow,deny
        Allow from all

    ErrorLog /var/log/apache2/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog /var/log/apache2/access.log combined
    ServerSignature On

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from ::1/128


<VirtualHost *>
    RewriteEngine On
    RewriteRule ^/(.*)$1
<Directory />
        Options FollowSymLinks
        AllowOverride None
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20060202/42556dc1/attachment.htm

More information about the Zope mailing list