that did it! thanks very much.
On Jan 5, 12:10 am, Anand Chitipothu <[email protected]> wrote: > 2011/1/4 Brian Whitman <[email protected]>: > > > > > > > > > > > I am running web.py under fastcgi under lighttpd. all is working fine- > > except in one place I call > > > raise web.seeother('/view/'+md5) > > > when this runs on my local dev instance it is fine, it redirects to > >http://localhost:8080/view/md5 > > > But on the fastcgi hosted one, it goes to http//remote.host.com/ > > webapp.py/view/md5 > > > It still works fine, but is unsightly.http://remote.host.com/view/md5 > > works fine too, and it should redirect to that. Any ideas why this is > > happening? > > > My 10-fastcgi.conf is > > > server.modules += ( "mod_fastcgi" ) > > server.modules += ( "mod_rewrite" ) > > > fastcgi.server = ( "/webapp.py" => > > (( > > "host" => "127.0.0.1", > > "port" => 9080, > > "check-local" => "disable" > > )) > > ) > > > url.rewrite-once = ( > > "^/favicon.ico$" => "/static/favicon.ico", > > "^/static/(.*)$" => "/static/$1", > > "^/(.*)$" => "/webapp.py/$1", > > ) > > You need to add REAL_SCRIPT_NAME="" in environment when starting the > fastcgi server. > > You can do that either by running the script as: > > REAL_SCRIPT_NAME="" python myapp.py fastcgi 9080 > > or > > export REAL_SCRIPT_NAME="" > python myapp.py fastcgi 9080 > > Anand -- 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.
