All pastes #232496 Raw Edit

Unnamed

public text v1 · immutable
·published 2006-11-01 11:15 UTC
rendered paste body
<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot /var/www/virtual/default/
    ServerName default.example.com
    ErrorLog logs/default.example.com-error_log
    CustomLog logs/default.example.com-access_log common
</VirtualHost>



<VirtualHost *:80>
    ServerName kamal.example.com
    ServerAlias kamal2.example.com kamal3.example.com
    ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot /var/www/virtual/kamal/
    AddHandler mod_python .py
    ErrorLog logs/dummy-host.example.com-error_log
    CustomLog logs/dummy-host.example.com-access_log common
    # Try playing with mod_rewrite
##    RewriteEngine On
##    RewriteLogLevel 3
##    RewriteRule ^hello/(.*)$ /py/hello.py [L]
##    RewriteRule ^(.*)$ /redir.html
##    RewriteLog "/var/log/httpd/rewrite.log"
<Directory "/var/www/virtual/kamal/py">
    SetHandler mod_python
    PythonHandler mod_python.publisher
    PythonDebug On
    AddHandler mod_python .py
        <Files *.html>
                SetHandler default-handler
        </Files>
</Directory>
</VirtualHost>