I've tried using it with the 'funny url', but it doesn't seem to work.
I always get redirected to the 'main' page of the server installation.
Below is my lighttpd.conf. Is there anything wrong with it you think?
Do I need the mimetype? The code.py file is the example from
webpy.org.
======================
server.document-root = "/usr/www/lib/"
server.pid-file = "/var/run/lighttpd.pid"
server.errorlog = "/var/log/lighttpd/error.log"
server.port = 80
server.username = "www-data"
server.groupname = "www-data"
server.modules = (
"mod_auth",
"mod_access",
"mod_alias",
"mod_cgi",
"mod_fastcgi",
"mod_accesslog"
)
server.errorfile-prefix = "/usr/www/lib/error-"
mimetype.assign = (
".html" => "text/html",
".txt" => "text/plain",
".jpg" => "image/jpeg",
".png" => "image/png",
".gif" => "image/gif",
".css" => "text/css"
)
accesslog.filename = "/var/log/lighttpd/access.log"
static-file.exclude-extensions = ( ".fcgi", ".php", ".rb", "~",
".inc", ".cgi")
index-file.names = ( "nasMaster.pl" )
alias.url = ( "/auth" => "/usr/www/lib" )
auth.backend = "htdigest"
auth.backend.htdigest.userfile = "/var/private/lighttpd.htdigest.user"
auth.require = ( "/auth" =>
(
"method" => "digest",
"realm" => "nas admin",
"require" => "valid-user"
)
)
fastcgi.debug = 0
fastcgi.server = (
".pl" =>
(( "socket" => "/tmp/lighttpd.fcgi.socket",
"bin-path" => "/usr/www/lib/nasMaster.pl",
"check-local" => "disable",
"min-procs" => 1,
"max-procs" => 1,
"idle-timeout" => 30,
"bin-environment" => (
# Environment variables for nasMaster.pl
"PERL5LIB" => "/usr/www/lib",
"NAS_NBIN" => "/usr/www/nbin",
),
)),
"nasMaster.pl" =>
(( "socket" => "/tmp/lighttpd.fcgi.socket",
"check-local" => "disable",
)),
"/code.py" =>
(( "socket" => "/tmp/lighttpd.fcgi.socket",
"bin-path" => "/usr/www/lib/code.py",
"check-local" => "disable",
"max-procs" => 1
))
)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---