It looks like your RewriteRule contains a redundant trailing slash:
> RewriteRule ^/proxy:(.*)http://localhost:8080/tg/$1/[P,L]
(the one after $1 seems redundant). On http://www.cherrypy.org/wiki/BehindApache there is a detailed explanation on how to set up cherrypy behind apache using mod_proxy (or mod_rewrite). --Nadav On Dec 18, 11:03 pm, "Seb" <[EMAIL PROTECTED]> wrote:
Hello ! I've got a problem on my tg installation. I'm behind an apache proxy who redirect every demand to turbogears and works well. But, when I try to acces in my classes indexs, tg bugs if I don't add the ending slash in the URL. If tryhttp://localhost/tg/admin-> I've got a 404 error and TG redirect me tohttp://localhost/adminbuthttp://localhost/tg/admin/( with the ending slash ), this work as I want. ( If I connect directly to tg ( on the 8080 port ), tg add the slash when it is need. ) This is the error message in terminal :>2006-12-18 21:57:45,328 cherrypy.msg INFO : Page handler: "The path'/admin' was not found." >Traceback (most recent call last): > File "/var/lib/python-support/python2.4/cherrypy/filters/__init__.py", line 145, in applyFilters > method() > File "/var/lib/python-support/python2.4/turbogears/startup.py", line 131, in on_start_resource > raise cherrypy.NotFound(path) >NotFound: 404 >2006-12-18 21:57:45,331 turbogears.identity INFO Identity is available... >127.0.0.1 - admin "GET /admin HTTP/1.1" 302 99 "" "Mozilla/5.0 (X11;U; Linux i686; fr; rv:1.8.1) Gecko/20061024 Iceweasel/2.0(Debian-2.0+dfsg-1)"This is my apache configuration : ><Location /tg/> > RewriteEngine on > Options Indexes MultiViews +FollowSymlinks > Order allow,deny > allow from all > ProxyPass http://localhost:8080/ > ProxyPassReversehttp://localhost:8080/ > RewriteRule ^/proxy:(.*)http://localhost:8080/tg/$1/[P,L] ></Location>And my controllers.py >class admin(controllers.Controller): > @expose(template="web.templates.admin") > def index(self): > import time > return dict(now=time.ctime()) > ... >class Root(controllers.RootController): > admin = admin() > ...
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

