[csw-devel] SF.net SVN: gar:[20639] csw/mgar/gar/v2/lib/web/README
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Sun Apr 7 15:31:10 CEST 2013
Revision: 20639
http://gar.svn.sourceforge.net/gar/?rev=20639&view=rev
Author: wahwah
Date: 2013-04-07 13:31:10 +0000 (Sun, 07 Apr 2013)
Log Message:
-----------
lib/web/README: Updated pkgdb and releases setup
We no longer run under mod_python, instructions are now updated to mod_wsgi.
Modified Paths:
--------------
csw/mgar/gar/v2/lib/web/README
Modified: csw/mgar/gar/v2/lib/web/README
===================================================================
--- csw/mgar/gar/v2/lib/web/README 2013-04-07 13:30:56 UTC (rev 20638)
+++ csw/mgar/gar/v2/lib/web/README 2013-04-07 13:31:10 UTC (rev 20639)
@@ -1,52 +1,57 @@
Web-serving components of the checkpkg infrastructure.
-Configuring scripts with mod_python on Apache:
+Configuring 'pkgdb' and 'releases' scripts with mod_wsgi on Apache:
-modpython_gateway.py needs to be downloaded from [1] and put into the
-lib/web/ directory. This is done via an external reference in svn
-and pulled in automatically.
+ DocumentRoot "/opt/csw/apache2/share/htdocs/buildfarm"
+ ServerName buildfarm.example.com
-[1] http://svn.aminus.net/misc/modpython_gateway.py
+ # General WSGI settings
+ <IfModule wsgi_module>
+ WSGIDaemonProcess buildfarm.example.com display-name=pkgdb threads=15 maximum-requests=1000
+ WSGIProcessGroup buildfarm.example.com
+ </IfModule>
-A piece of Apache configuration:
+ # Static files such as CSS stylesheets.
+ Alias /pkgdb-static /path/to/gar/v2/lib/web/static
+ <Directory /path/to/gar/v2/lib/web/static>
+ Order allow,deny
+ Allow from all
+ Options +Indexes
+ </Directory>
- Alias /pkgdb .../pkgdb_web
- <Directory .../pkgdb_web>
+ # http://buildfarm.example.com/pkgdb/
+ <IfModule wsgi_module>
+ WSGIScriptAlias /pkgdb /path/to/gar/v2/lib/web/pkgdb_web.py/
+ </IfModule>
+ <Location /pkgdb>
Order allow,deny
Allow from all
+ </Location>
- <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 /opt/csw/apache2/share/htdocs/buildfarm/pkgdb>
+ Order allow,deny
+ Allow from all
</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>
+ <Directory /opt/csw/apache2/share/htdocs/buildfarm/releases>
Order deny,allow
Deny from all
+ Allow from 1.2.3.4
+ </Directory>
- Allow from <internal IPs>
-
- </Directory>
+ # http://buildfarm.example.com/releases/
+ <IfModule wsgi_module>
+ WSGIScriptAlias /releases /path/to/gar/v2/lib/web/releases_web.py/
+ </IfModule>
<Location /releases>
Order deny,allow
Deny from all
- Allow from <internal IPs>
+ Allow from 1.2.3.4
- <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>
+ AuthName "Package releases REST interface"
+ AuthType Basic
+ AuthUserFile /path/to/buildfarm-users.htpasswd
+ Require valid-user
</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