# =============================================================== # Local MODS # MIKE GORE <IfModule mod_userdir.c> UserDir public_html #UserDir disabled root </IfModule>
# ================================================================ # We have two virtual hosts here # HEALTHDOC.CS # INKPOTINC.CA (disabled 29/10/09 7:16:24 PM) # ================================================================ # ================================================================ # HEALTHDOC.CS # ================================================================ <VirtualHost *:80> ServerName healthdoc.cs.uwaterloo.ca ServerAdmin webmaster@localhost DocumentRoot /var/www/healthdoc <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/healthdoc> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> 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 <Location /trac> SetHandler mod_python PythonInterpreter main_interpreter PythonHandler trac.web.modpython_frontend PythonOption TracEnv /var/trac #PythonOption TracUriRoot /trac AuthType Basic AuthName "Password Required" AuthUserFile /home/hdpr/web/users AuthGroupFile /home/hdpr/web/groups Require group tcde </Location> ScriptAlias /cgi/ /var/www/healthdoc/cgi/ <Directory "/var/www/healthdoc/cgi"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Options +ExecCGI Order allow,deny Allow from all </Directory> Include /etc/mediawiki/apache.conf </VirtualHost> # ================================================================ # INKPOTINC # ================================================================ <VirtualHost *:80> ServerName inkpotinc.ca ServerAdmin hdpr@localhost # # #UserDir disabled # #UserDir disabled root # # AccessFileName .htaccess # # DocumentRoot /var/www/inkpotinc # <Directory /var/www/inkpotinc> AuthType Basic AuthName "Password Required" AuthUserFile /home/hdpr/web/users AuthGroupFile /home/hdpr/web/groups Require group Inkpot AllowOverride AuthConfig Options Indexes FollowSymLinks MultiViews Order allow,deny allow from all </Directory> # # ScriptAlias /cgi/ /var/www/inkpotinc/cgi/ # <Directory /var/www/inkpotinc/cgi> # AllowOverride None # Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch # Options +ExecCGI # Order allow,deny # Allow from all # </Directory> # # ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ # <Directory "/usr/lib/cgi-bin"> # AllowOverride None # Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch # Order allow,deny # Allow from all # </Directory> # # 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 # Include /etc/mediawiki/apache.conf </VirtualHost>
# Uncomment this to add an alias. # This does not work properly with virtual hosts.. # 14May2010 Mike Gore # I added another Include directive to this file from with the healthdoc.cs Virtual Host directive # So it should now work Alias /mediawiki /var/lib/mediawiki
# Mike Gore 19May2010 # See: http://linuxclues.blogspot.com/2008/04/installing-configuring-mediawiki-ubuntu.html #Global permissions # Anonymous $wgGroupPermissions['*' ]['createaccount'] = false; $wgGroupPermissions['*' ]['read'] = true; $wgGroupPermissions['*' ]['edit'] = false; $wgGroupPermissions['*' ]['delete'] = false; $wgGroupPermissions['*' ]['createpage'] = false; $wgGroupPermissions['*' ]['upload'] = false; $wgGroupPermissions['*' ]['move'] = false; #Logged users $wgGroupPermissions['user' ]['createaccount'] = true; $wgGroupPermissions['user' ]['read'] = true; $wgGroupPermissions['user' ]['edit'] = true; $wgGroupPermissions['user' ]['delete'] = false; $wgGroupPermissions['user' ]['createpage'] = true; $wgGroupPermissions['user' ]['upload'] = true; $wgGroupPermissions['user' ]['move'] = false;