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
-~----------~----~----~----~------~----~------~--~---

Reply via email to