[Greg Ward] > > Note that Quixote depends on the setting of SCRIPT_NAME supplied by the > web server. With our Apache setup, that would be "/web" -- apparently > with yours, its "/cgi-bin/web.py". Perhaps your Apache config is wrong > -- which Apache version are you using? Can you post the config that > does rewrites /web to /cgi-bin/web.py? Ah! I bet it is the SCRIPT_NAME then. I wonder if I can override the environment variable for this. Since this is hosted, I'm limited to a .htaccess file. Here are the relevant rewrite bits from that file: RewriteEngine on RewriteBase / RewriteRule ^$ web/ [redirect=permanent] RewriteRule ^web$ web/ [redirect=permanent] RewriteRule ^web/(.*) cgi-bin/web.py/$1 [last] In a .htaccess file I can also do things like: SetEnv PYTHONPATH /home/pobrien/code But this applies to every app, so I can't override the SCRIPT_NAME here. :-( But MoinMoin needed the same thing and the solution was to add this to the config: import os os.environ['SCRIPT_NAME'] = '/wiki' So I should be able to do something similar with Quixote. Thanks. -- Patrick K. O'Brien Orbtech ----------------------------------------------- "Your source for Python software development." ----------------------------------------------- Web: http://www.orbtech.com/web/pobrien/ Blog: http://www.orbtech.com/blog/pobrien/ Wiki: http://www.orbtech.com/wiki/PatrickOBrien -----------------------------------------------