2009/9/26 Kenneth Bull <@Kenneth_Bull>:
I’ll look through my old config files later today (my other computer
is rather loud and my roommates are still sleeping).
Here’s my configuration file:
<VirtualHost *:80>
ServerAdmin @Kenneth_Bull
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
Alias /moin_static "/var/wiki/common/htdocs/"
<Directory "/var/wiki/common/htdocs/">
Order deny,allow
Allow from all
</Directory>
ScriptAlias /wiki “/var/wiki/cgi-bin/moin.cgi”
<Directory "/var/wiki/cgi-bin">
Order deny,allow
Allow from all
</Directory>
WSGIScriptAlias /wiki "/var/wiki/cgi-bin/moin.wsgi"
WSGIDaemonProcess moin user=www-data group=www-data
home=/home/www-data processes=5 threads=10 maximum-requests=1000
umask=0007
WSGIProcessGroup moin
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
The important bits are:
WSGIScriptAlias /wiki "/var/wiki/cgi-bin/moin.wsgi"
WSGIDaemonProcess moin user=www-data group=www-data
home=/home/www-data processes=5 threads=10 maximum-requests=1000
umask=0007
WSGIProcessGroup moin
(I’ve used WSGI for performance reasons. See here: http://wsgi.org/wsgi/ )
If you want this on http://wiki.libsdl.org/ instead of
http://wiki.libsdl.org/wiki/ do this instead:
WSGIScriptAlias / "/var/wiki/cgi-bin/moin.wsgi"
WSGIDaemonProcess moin user=www-data group=www-data
home=/home/www-data processes=5 threads=10 maximum-requests=1000
umask=0007
WSGIProcessGroup moin
You need to replace /var/wiki/cgi-bin/moin.wsgi with the local path to
your moin.wsgi script (as in not over the internet).
You may need to edit the WSGIDaemonProcess line (specifically user,
group and home). There are brief instructions in the moin.wsgi file
packed with moinmoin.
You will need to add the path to your wiki data to moin.wsgi. For my
wiki this is:
sys.path.insert(0, ‘/var/wiki/’)
since that is where I put my wikiconfig.py.