Hello

The exemple config for apache 2 doesn't work at all (at least for me).
http://werc.cat-v.org/docs/web-server-setup/apache2

So here is something that works tweaked with the help of the apache 1.3 examples and various web resources. It's not that different from the example, but a few bits are useful if you want the sitemap.txt to be created or if your plan9port installation is not in /usr/local/plan9 (or, even, if you want werc to serve pages).

--
You received this message because you are subscribed to the Google Groups 
"werc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/werc9?hl=en.

<VirtualHost *:80>
    RewriteEngine On

    # This is needed if plan9port isn't installed in /usr/local/plan9
    PassEnv PLAN9

    ServerName cat-v.org
    ServerAlias www.cat-v.org harmful.cat-v.org www.binarydream.org 
ninetimes.cat-v.org *.cat-v.org

    AddHandler cgi-script .rc

    <Directory /srv/werc/bin>
        Options ExecCGI
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
    # this is for sitemap.{txt,gz}
    <Directory /srv/werc/sites>
        Options FollowSymLinks
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
    <IfModule mod_dir.c>
        DirectoryIndex /werc.rc
    </IfModule>

    RewriteRule /pub/style/style.css /srv/werc/pub/style/style.css
    RewriteRule /favicon.ico /srv/werc/pub/favicon.ico
    RewriteRule (.*) /srv/werc/sites/%{HTTP_HOST}/$1

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule .* /srv/werc/bin/werc.rc

    RewriteRule /werc.rc /srv/werc/bin/werc.rc
    DocumentRoot "/srv/werc/bin/"
    ErrorDocument 404 /werc.rc

    ErrorLog "/var/log/httpd/cat-v_error_log"
    CustomLog "/var/log/httpd/cat-v_access_log" common
</VirtualHost>

Reply via email to