Hi there:
I'm trying to deploy an app over lighttpd and encrypt all the traffic,
so I followed the web.py documentation to set up lighttpd+FastCGI, and
it works well over HTTPS, but as soon I try to visit http://localhost
or simply localhost, lighttpd redirect to https://localhost, but with
index.py appended to it, which triggers a Not Found error.
I tried moving some stuff around, but I can't get how to do the
redirect well, so I really need help. Here's the relevant stuff of my
lighttpd.conf
server.modules = (
"mod_fastcgi",
"mod_redirect",
"mod_rewrite"
)
$SERVER["socket"] == ":80" {
$HTTP["host"] =~ "(.*)" {
url.redirect = (
"^/(.*)" => "https://%1/$1"
)
}
}
$SERVER["socket"] == ":443" {
ssl.engine = "enable"
ssl.pemfile = "certificate.pem"
ssl.use-sslv2 = "disable"
ssl.use-sslv3 = "disable"
}
fastcgi.server = (
"index.py" => ((
"socket" => "/tmp/app.socket",
"bin-path" => "index.py",
"max-procs" => 1,
"bin-environment" => (
"REAL_SCRIPT_NAME" => ""
),
"check-local" => "disable"
))
)
url.rewrite-once = (
"^/favicon.ico$" => "/static/assets/favicon.ico",
"^/static/(.*)$" => "/static/$1",
"^/(.*)$" => "/index.py/$1"
)
Thanks beforehand.
--
You received this message because you are subscribed to the Google Groups
"web.py" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/webpy.
For more options, visit https://groups.google.com/groups/opt_out.