Hi Arnar,

It sounds like there are two things in your case:

1) you should use the url function to make sure that the server path
gets added to URLs in your program
2) the url function has a bug that needs fixing (which is the ticket
Jorge opened).

Kevin

On 12/5/05, Arnar <[EMAIL PROTECTED]> wrote:
>
> Hello there,
>
> I believe I might be experiencing the same bug. I'm running TurboGears
> (latest stable version) behind Apache and mod_python via mpcp. My
> problem is not with redirects though, but that I can't place the
> application anywhere except on the virtual host root.
>
> I want to place my application on a path like
> http://www.server.is/application/ - but I get an 404 with the following
> traceback:
>
> Traceback (most recent call last):
>   File
> "/usr/lib/python2.4/site-packages/CherryPy-2.1.0-py2.4.egg/cherrypy/_cphttptools.py",
> line 271, in run
>     main()
>   File
> "/usr/lib/python2.4/site-packages/CherryPy-2.1.0-py2.4.egg/cherrypy/_cphttptools.py",
> line 497, in main
>     page_handler, object_path, virtual_path = mapPathToObject(path)
>   File
> "/usr/lib/python2.4/site-packages/CherryPy-2.1.0-py2.4.egg/cherrypy/_cphttptools.py",
> line 748, in mapPathToObject
>     raise cherrypy.NotFound(path)
> NotFound: 404: The path '/timaskraning/' was not found.
>
> I've tried both baseUrlFilter and server.webpath, I even tried adding
> the Cp-Location header to the request in httpd.conf. Nothing helps..
>
> Am I doing something wrong?
>
> Arnar
>
> Kevin Dangoor wrote:
> > On 01 Dec 2005 18:17:46 -0200, Jorge Godoy <[EMAIL PROTECTED]> wrote:
> > >
> > > Kevin Dangoor <[EMAIL PROTECTED]> writes:
> > >
> > > > Are you proxying behind Apache or something? If so, this would make 
> > > > sense
> > >
> > > Yes.
> > >
> > > > You should be able to set server.webpath in your config file to
> > > > http://my.site.com
> > >
> > > I've tried that.  It then replaces the URL with something like:
> > > http://localhost:8080/http://my.site.com instead of http://my.site.com/ 
> > > only.
> >
> > Sounds like a bug. Can you drop that into the trac and set the milestone to 
> > 0.9?
> >
> > Thanks,
> > Kevin
>
>


--
Kevin Dangoor
Author of the Zesty News RSS newsreader

email: [EMAIL PROTECTED]
company: http://www.BlazingThings.com
blog: http://www.BlueSkyOnMars.com

Reply via email to