LDP/LDP/lampadas/conf/test.httpd.conf

79 lines
2.2 KiB
Plaintext

#
# This is a sample httpd.conf
#
# This is the configuration that works for demo.lampadas.org
# and test.lampadas.org, using name-based virual hosting.
#
# It will need tweaking for your installation. You'll notice
# that I'm running the demo right out of my cvs tree.
# Developers can do the same, but and actual install should
# point to wherever you unpacked the source code.
#
<VirtualHost *>
ServerName test.lampadas.org
ServerAlias www.lampadas.org
UseCanonicalName Off
AddDefaultCharset UTF-8
AddCharset UTF-8 .html
DocumentRoot /home/david/ldp/cvs/LDP/lampadas/pylib
<Directory /home/david/ldp/cvs/LDP/lampadas/pylib>
AllowOverride None
SetHandler python-program
PythonHandler ModPython
PythonAutoReload On
PythonDebug On
PythonPath "['/home/david/ldp/cvs/LDP/lampadas/pylib'] + ['/home/david/ldp/cvs/LDP/lampadas/pylib/data'] + sys.path"
Order allow,deny
Allow from all
RewriteEngine on
RewriteRule ^$ /index.html [R]
RewriteRule ^/$ /index.html [R]
</Directory>
Alias /data /home/david/ldp/cvs/LDP/lampadas/pylib/data
<Location /data>
AllowOverride None
SetHandler python-program
PythonHandler mod_python.publisher
PythonDebug On
PythonPath "['/home/david/ldp/cvs/LDP/lampadas/pylib'] + ['/home/david/ldp/cvs/LDP/lampadas/pylib/data'] + sys.path"
Order allow,deny
Allow from all
</Location>
Alias /doc /var/cache/lampadas/www/doc
<Location /doc>
AllowOverride None
Options Indexes
Order allow,deny
Allow from all
DirectoryIndex index.html
</Location>
Alias /docdownloads /var/cache/lampadas/www/doc
<Location /docdownloads>
Options Indexes Multiviews
AllowOverride None
Order allow,deny
Allow from all
RemoveType .html
ForceType text/plain
</Location>
Alias /images /home/david/ldp/cvs/LDP/lampadas/www/images
<Location /images>
AllowOverride None
Order allow,deny
Allow from all
</Location>
Alias /themes /home/david/ldp/cvs/LDP/lampadas/www/themes
<Location /themes>
AllowOverride None
Order allow,deny
Allow from all
</Location>
</VirtualHost>