production didn't help, I've reproduced the problem from a fresh quickstart (details below). I assume I'm not understanding how webpath is supposed to be used. What gets me is the client side works. All images, CSS, etc.. load as expected.
Apache: ProxyPass /mytest/ http://localhost:8090/ ProxyPassReverse /mytest/ http://localhost:8090/ tg-admin quickstart mytest (yes to identity) Adjustments to dev.cfg: sqlobject.dburi=(set to working mysql dburi) server.socket_port=8090 server.environment="production" server.webpath="/mytest/" autoreload.package="mytest" start the server, open up a browser and go to /mytest/: 2007-08-07 09:36:41,439 cherrypy.msg INFO HTTP: Serving HTTP on http://localhost:8090/ 2007-08-07 09:36:50,028 cherrypy.msg INFO : Page handler: "The path '/' was not found." Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/CherryPy-2.2.1- py2.4.egg/cherrypy/filters/__init__.py", line 145, in applyFilters method() File "/usr/local/lib/python2.4/site-packages/TurboGears-1.0.2.2- py2.4.egg/turbogears/startup.py", line 141, in on_start_resource raise cherrypy.NotFound(path) NotFound: 404 127.0.0.1 - jkane "GET / HTTP/1.1" 200 3260 "" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4) Gecko/20061201 Firefox/2.0.0.4 (Ubuntu- feisty)" 2007-08-07 09:36:50,244 cherrypy.msg INFO : Page handler: "The path '/ static/css/style.css' was not found." Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/CherryPy-2.2.1- py2.4.egg/cherrypy/filters/__init__.py", line 145, in applyFilters method() File "/usr/local/lib/python2.4/site-packages/TurboGears-1.0.2.2- py2.4.egg/turbogears/startup.py", line 141, in on_start_resource raise cherrypy.NotFound(path) NotFound: 404 127.0.0.1 - jkane "GET /static/css/style.css HTTP/1.1" 304 - "https:// wi-mon.wba.sonic.net/mytest/" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4) Gecko/20061201 Firefox/2.0.0.4 (Ubuntu-feisty)" 2007-08-07 09:36:50,615 cherrypy.msg INFO : Page handler: "The path '/ static/images/under_the_hood_blue.png' was not found." Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/CherryPy-2.2.1- py2.4.egg/cherrypy/filters/__init__.py", line 145, in applyFilters method() File "/usr/local/lib/python2.4/site-packages/TurboGears-1.0.2.2- py2.4.egg/turbogears/startup.py", line 141, in on_start_resource raise cherrypy.NotFound(path) NotFound: 404 .... (lots more) .... On Jul 29, 7:22 pm, "Ian Wilson" <[EMAIL PROTECTED]> wrote: > You might want to check to make sure you have this line: > server.environment ="production" > > I don't know why that would cause your problem but anytime you have > two accesses reported it makes me think of the fact that when running > in development mode there are actually two servers running. > > -Ian > > On 7/26/07, Kane <[EMAIL PROTECTED]> wrote: > > > > > OK; setup is a little complex, but the gist is when I try and use > > server.webpath="/wba/" the results are unexpected. I'm trying to > > setup two versions of the same turbogears site, one on "/dev/" and one > > on "/wba/" so I can work on one without mucking up the other. > > > Right now the /dev/ site attaches to 8080, is mod_proxy glued to /dev/ > > by Apache and everything works just fine. Except all the lame "/dev/ > > path" urls. > > > As far as I can tell from the docs the 'right' answer is to set > > server.webpath and then use turbogears.url and tg.url wrappers on all > > url references. So I've done that, and it works. Almost. From the > > end user perspective it looks perfect. URLs are generated exactly as > > expected, some extra "//" url path cruft but no showstoppers. > > > BUT, the turbogears output is logging both a 404 error and a success > > on every page. If I get rid of server.webpath the problem goes away > > (but paths break). > > > My solution is to not use server.webpath and rewrite using relative > > URLs, but it isn't pretty and seems like a lot of work to fix what > > boils down to server logfile cosmetics. Before I dig into the TG > > source I figured I'd give ya'll a holler in case I'm missing something > > obvious. > > > I've tried with identity both enabled and disabled, it has no effect > > on the results. > > > Apache access_log (looks perfect): > > ---- > > 64.x.x.x - - [26/Jul/2007:16:29:28 -0700] "GET /wba/ HTTP/1.1" 200 > > 3675 > > 64.x.x.x - - [26/Jul/2007:16:29:28 -0700] "GET /css/global.css HTTP/ > > 1.1" 304 - > > 64.x.x.x - - [26/Jul/2007:16:29:28 -0700] "GET /images/exclamation.png > > HTTP/1.1" 304 - > > ------------------------------------------- > > Turbogears output (looks broken): > > ---- > > 2007-07-26 16:29:28,279 cherrypy.msg INFO : Page handler: "The path > > '/' was not found." > > Traceback (most recent call last): > > File "/usr/local/lib/python2.4/site-packages/CherryPy-2.2.1- > > py2.4.egg/cherrypy/filters/__init__.py", line 145, in applyFilters > > method() > > File "/usr/local/lib/python2.4/site-packages/TurboGears-1.0.2.2- > > py2.4.egg/turbogears/startup.py", line 141, in on_start_resource > > raise cherrypy.NotFound(path) > > NotFound: 404 > > > 127.0.0.1 - - "GET / HTTP/1.1" 200 3675 "" "Mozilla/5.0 (X11; U; Linux > > i686; en-US; rv:1.8.1.4) Gecko/20061201 Firefox/2.0.0.4 (Ubuntu- > > feisty)" > > -------------------------------------------- > > Relevant TG .cfg > > ---- > > server.webpath="/wba/" > > base_url_filter.on = True > > base_url_filter.use_x_forwarded_host = True > > -------------------------------------------- > > Relevant Apache.conf > > ---- > > ProxyPass /wba/http://localhost:8083/ > > ProxyPassReverse /wba/http://localhost:8083/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

