[csw-devel] SF.net SVN: gar:[13966] csw/mgar/gar/v2/lib/web/example-lighttpd.conf

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Mon Mar 28 03:06:25 CEST 2011


Revision: 13966
          http://gar.svn.sourceforge.net/gar/?rev=13966&view=rev
Author:   wahwah
Date:     2011-03-28 01:06:25 +0000 (Mon, 28 Mar 2011)

Log Message:
-----------
pkgdb-web: Example lighttpd configuration

Close, but not working as expected yet.

Added Paths:
-----------
    csw/mgar/gar/v2/lib/web/example-lighttpd.conf

Added: csw/mgar/gar/v2/lib/web/example-lighttpd.conf
===================================================================
--- csw/mgar/gar/v2/lib/web/example-lighttpd.conf	                        (rev 0)
+++ csw/mgar/gar/v2/lib/web/example-lighttpd.conf	2011-03-28 01:06:25 UTC (rev 13966)
@@ -0,0 +1,39 @@
+# This is a section showing an example lighttpd configuration.  There's
+# a problem with the "^/pkgdb/(.*)$" => "/pkgdb_web.py/$1" -- the $1
+# parameter seems to match too much.
+#
+# http://stackoverflow.com/questions/4533109/lighttpd-mod-rewrite-and-web-py-unexpected-behavior
+
+server.document-root = ".../gar/v2/lib/web/static"
+
+url.rewrite-once = (
+  "^/favicon.ico$" => "/favicon.ico",
+  "^/pkgdb-static/(.*)$" => "/$1",
+  "^/pkgdb/(.*)$" => "/pkgdb_web.py/$1",
+  "^/releases/(.*)$" => "/releases_web.py/$1"
+)
+
+## PythonPath "sys.path + ['.../gar/v2/lib/web', '.../gar/v2']"
+fastcgi.server = (
+"/pkgdb_web.py" =>
+(( 
+   "socket" => "/tmp/fastcgi-pkgdb.socket",
+   "bin-path" => ".../gar/v2/lib/web/pkgdb_web.py",
+   "max-procs" => 1,
+   "bin-environment" => (
+     "REAL_SCRIPT_NAME" => ""
+   ),
+   "check-local" => "disable"
+)),
+"/releases_web.py" =>
+(( 
+   "socket" => "/tmp/fastcgi-releases.socket",
+   "bin-path" => ".../gar/v2/lib/web/releases_web.py",
+   "max-procs" => 1,
+   "bin-environment" => (
+     "REAL_SCRIPT_NAME" => ""
+   ),
+   "check-local" => "disable"
+)),
+)
+


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