[csw-devel] SF.net SVN: gar:[13087] csw/mgar/gar/v2/lib/web/README

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Mon Jan 24 09:37:06 CET 2011


Revision: 13087
          http://gar.svn.sourceforge.net/gar/?rev=13087&view=rev
Author:   wahwah
Date:     2011-01-24 08:37:06 +0000 (Mon, 24 Jan 2011)

Log Message:
-----------
lib/web: Adding a README file

Documents mod_python configuration.

Added Paths:
-----------
    csw/mgar/gar/v2/lib/web/README

Added: csw/mgar/gar/v2/lib/web/README
===================================================================
--- csw/mgar/gar/v2/lib/web/README	                        (rev 0)
+++ csw/mgar/gar/v2/lib/web/README	2011-01-24 08:37:06 UTC (rev 13087)
@@ -0,0 +1,51 @@
+Web-serving components of the checkpkg infrastructure.
+
+Configuring scripts with mod_python on Apache:
+
+modpython_gateway.py needs to be downloaded from [1] and put into the
+lib/web/ directory.
+
+[1] http://svn.aminus.net/misc/modpython_gateway.py
+
+A piece of Apache configuration:
+
+  Alias /pkgdb .../pkgdb_web
+  <Directory .../pkgdb_web>
+    Order allow,deny
+    Allow from all
+
+    <IfModule python_module>
+      SetHandler python-program
+      PythonPath "sys.path + ['.../gar/v2/lib/web', '.../gar/v2']"
+      PythonHandler modpython_gateway::handler
+      PythonOption wsgi.application pkgdb_web::main
+      PythonOption SCRIPT_NAME /pkgdb
+      PythonDebug on
+    </IfModule>
+  </Directory>
+
+  # I don't know why the Deny/Allow rules need to be duplicated, but I haven't
+  # been able to run the thing with just one set of permissions.
+  # The directory does not need to exist, but the name must match
+  # location ("releases").
+  <Directory /virtual/host/root/releases>
+    Order deny,allow
+    Deny from all
+
+    Allow from <internal IPs>
+
+  </Directory>
+  <Location /releases>
+    Order deny,allow
+    Deny from all
+    Allow from <internal IPs>
+
+    <IfModule python_module>
+      SetHandler python-program
+      PythonPath "sys.path + ['.../gar/v2/lib/web', '.../gar/v2']"
+      PythonHandler modpython_gateway::handler
+      PythonOption wsgi.application releases_web::main
+      PythonOption SCRIPT_NAME /releases
+      PythonDebug on
+    </IfModule>
+  </Location>


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list