All pastes #210489 Raw Edit

Stuff

public text v1 · immutable
#210489 ·published 2006-10-19 20:12 UTC
rendered paste body
## Example Apache virtual host configuration for Hula.
##
## READ THIS BEFORE STARTING
## 
## 1. You will need to change ServerName to something which is a known hostname,
##    then drop this in /etc/apache2/sites-available/.
## 2. If you're happy with the config, 'a2ensite hula' (or, whatever you called
##    this file) 
## 3. You need libapache2-mod-python installed for this to work. If you're
##    using python 2.3 (e.g., Debian Sarge) you need to change the python
##    path - see below in the configuration.
## 4. Make sure mod_python is turned on, 'a2enmod mod_python'
## 5. If you want to use a secure web connection (RECOMMENDED!!), then make
##    sure you turn on ssl ('a2enmod ssl'), and uncomment every line starting
##    '#ssl#', and remove any duplicatees (e.g., NameVirtualHost) that result
## 6. You may need to restart Apache after all that
## 7. Hula needs to be running for you to successfully log in.

#NameVirtualHost *:443
#<VirtualHost *:443>
NameVirtualHost *
<VirtualHost *>
	# SSLEngine On
	# SSLCertificateFile /etc/apache2/ssl/apache.pem
	ServerName northernsoul.sebpayne.dyndns.org
	
	<IfModule mod_python.c>
		Alias / /var/www/hula/

		<Location />
		    Order allow,deny
		    Allow from all
		    Options +FollowSymlinks
		</Location>

		<Location /user>
		    Order allow,deny
		    Allow from all

		    SetHandler python-program
		    # Uncomment the line below and comment out the next line
		    # if you're on Debian Sarge.
		    #PythonPath "['/usr/lib/python2.3/site-packages']+sys.path"
		    PythonPath "['/usr/lib/python2.4/site-packages']+sys.path"
		    PythonHandler hula.dragonfly.Server
		    PythonOption DragonflyUriRoot "/user"
		    PythonDebug On
		</Location>
	</IfModule>
</VirtualHost>