Glasnost Help and Documentation
Administrators
Installation
Apache Configuration
Apache Configuration
Note: This assumes installation using the Debian package. For a default installation from source, /usr/lib must be replaced by /usr/local/lib.
Edit Apache's configuration file, and make sure the following modules are not commented out [1]:
LoadModule python_module /usr/lib/apache/1.3/mod_python.so LoadModule mod_userdir /usr/lib/apache/1.3/mod_userdir.so
The configuration of a virtual host is:
<VirtualHost www.my-glasnost-site.com> DocumentRoot /usr/lib/glasnost/web ServerName www.my-glasnost-site.com PythonPath "['/usr/lib/glasnost/web/'] + sys.path" SetHandler python-program DirectoryIndex index.py PythonHandler code.webhandler </VirtualHost>
Or, with SSL support:
<VirtualHost www.my-glasnost-site.com> SSLEngine on SSLOptions +ExportCertData SSLOptions +StdEnvVars SSLOptions +ExportCertData SSLCertificateFile certificatesPath/server.pem SSLCACertificateFile certificatesPath/ca.pem DocumentRoot /usr/lib/glasnost/web ServerName www.my-glasnost-site.com PythonPath "['/usr/lib/glasnost/web/'] + sys.path" SetHandler python-program DirectoryIndex index.py PythonHandler code.webhandler </VirtualHost>
[1] LoadModule ssl_module /usr/lib/apache/1.3/mod_ssl.so must not be commented out if Mod_SSL is used (libapache-mod-ssl package on Debian)