Change docs.mit.edu to a flask app
authorAlex Dehnert <adehnert@mit.edu>
Sun, 12 May 2013 19:31:56 +0000 (15:31 -0400)
committerAlex Dehnert <adehnert@mit.edu>
Sun, 12 May 2013 19:31:56 +0000 (15:31 -0400)
sites-common/docs.mit.edu

index c887c7993b070695f2bdb4249ad5e20a20b29e13..535eeed0b3aa458cc6a708244ab8bfbfc6ed53a9 100644 (file)
@@ -1,16 +1,19 @@
 ServerAdmin adehnert-webmaster@mit.edu
 
-DocumentRoot /var/www/docs.mit.edu/docroot/
 <Directory />
        Options FollowSymLinks
        AllowOverride None
 </Directory>
-<Directory /var/www/docs.mit.edu/docroot>
-#      Options Indexes FollowSymLinks MultiViews
-#      AllowOverride FileInfo AuthConfig Limit Indexes Options
-       DirectoryIndex index.html index.fcgi
-       Order allow,deny
-       allow from all
+
+WSGIDaemonProcess docs.mit.edu threads=5
+WSGIScriptAlias / /var/www/docs.mit.edu/redirector.wsgi
+WSGIScriptReloading On
+
+<Directory /var/www/docs.mit.edu>
+        WSGIProcessGroup docs.mit.edu
+        WSGIApplicationGroup %{GLOBAL}
+        Order deny,allow
+        Allow from all
 </Directory>
 
 ErrorLog /var/log/apache2/error.docs.mit.edu.log