<VirtualHost *>
    ServerName demo
    ServerAdmin you@example.com
    DocumentRoot /var/www/demo/html

    RewriteEngine on
    RewriteRule ^/?$			 /cgi-bin/pages.cgi?act=home-main [PT]
    RewriteRule ^/index.html$            /cgi-bin/pages.cgi?act=home-main [PT]
    RewriteRule ^/page/(.*)(\.html)?$	 /cgi-bin/pages.cgi?act=arts-item&name=$1 [PT]
    RewriteRule ^/cgi-bin/pages.cgi$     /cgi-bin/pages.cgi [PT]
    RewriteRule ^/cgi-bin/(.*)$		 /cgi-bin/pages.cgi?act=error-badcmd [PT]

    ScriptAlias /cgi-bin/ /var/www/demo/cgi-bin/
    Options +ExecCGI
    ErrorLog /var/www/logs/demo-error.log
    CustomLog /var/www/logs/demo-access.log common
</VirtualHost>
