> venkat wrote:
> I did change document-root to something other than the tg app dir
> indeed. I now changed this, so that the document root is the directory
> which contains the static/ subdir etc. Restarted lighttpd and the scgi
> app, but the problem still persists.
>
Did you ever resolve this?
I've just updated to TurboGears 1.0.7, using scgi and lighttpd, and
I'm seeing the same problems.
tg.url() adds the TG instance to the name, ie tg.url('/static/
css/...') adds '/myapp' to the front
turbogears.redirect does not work on relative URLs,
all page calls are routed to Root.default() rather than the particular
function. ie the standard identity login does not work under scgi
unless you change the url to /myapp/login
all works fine with TG web server, just broken on SCGI
lighttpd config:
$HTTP["host"] == "www.ukcmg.org.uk" {
server.document-root = {path to folder that contains static,
templates etc}
server.errorlog = "/tmp/lighttpd.error.log"
accesslog.filename = "/tmp/lighttpd.access.log"
$HTTP["url"] !~ "^/static/" {
scgi.server = (
"/" =>
( "127.0.0.1" =>
(
"host" => "127.0.0.1",
"port" => 4000,
"check-local" => "disable"
)
)
)
}
}
Has anything changed in the SCGI server?
Any help appreciated, my TG site is barely working!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---