Skip navigation.

Posts tagged with "Apache"

Some Apache Configurations

Per-user web directories
cd /etc/apache2/mods-enabled
ln -s ../mods-available/userdir.load userdir.load
ln -s ../mods-available/userdir.conf userdir.conf
/etc/init.d/apache2 restart


SSI
cd /etc/apache2/mods-enabled
ln -s ../mods-available/include.load include.load
/etc/init.d/apache2 restart

Note:If you use your home directory as the document root of the site, and don't load
userdir module, you need define <Directory /path/to/homedirctory/> according to the userdir.conf.
Something in userdir.conf (I don't know what) cannot be missing. Otherwise, SSI doesn't work.


.htaccess
Options +Include
AddHandler server-parsed .html
AddHandler mod_python .py
PythonHandler mod_python.cgihandler
PythonDebug On


It seems that DirectoryIndex should be configured in /modes-available/dir.conf, however I have to add it to httpd.conf