Hi,
I'm trying to use lighttpd to serve my app (I'm just in the testing
phase). I'm working my way through the pylons book, but wanted to try
serving via lighttpd (ooh, just like reddit! i think!).
So, I took the default development.ini and modified these lines:
use = egg:Flup#scgi_thread
host = 127.0.0.1
port = 6500
My lighttpd conf has mod_scgi in the server.modules list, and the
vhost looks like:
server.modules += ( "mod_simple_vhost" )
simple-vhost.document-root = "/dev/null"
$HTTP["host"] == "myexample.com" {
server.document-root = "/var/www/HelloWorld"
accesslog.filename = "/var/www/logs/helloworld-access_log"
scgi.server = ( "/" =>
("ServerIpAddress" =>
(
"host" => "127.0.0.1",
"port" => 6500,
"min-procs" => 4,
"max-procs" => 12,
"check-local" => "disable"
)
)
)
}
At this point, it still serves the default pylons page (the
index.html) but doesn't go to any controllers. So, myexample.com will
go to the index.html (and i can edit that file, and see changes
immediately), but going to http://myexample.com/hello/index gives me
the pylons 404 page. If I keep the app exactly the same, and serve it
straight up with paster (using the default development.ini), I can see
my index action in the hello controller.
This seems like step #8 out of ten thousand, and should be a no-
brainer, but googling tells me that my config should work. I'm on
ubuntu linux, and am using pylons 0.9.7.
Thanks very much in advance to anyone kind enough to help me out.
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" 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/pylons-discuss?hl=en.