#1199: Application mount point != virtual path prefix.
------------------------+---------------------------------------------------
Reporter: tic | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone:
Component: Deployment | Version: trunk
Severity: normal | Resolution:
Keywords: |
------------------------+---------------------------------------------------
Comment (by tic):
First, disregard attachment:startup.py-virtualpathfilter.diff -- I don't
know if that is the correct solution for deploying behind FastCGI and have
reverted my local copy. (I don't have the permission to delete it)
I'm using the file dispatch.fcgi, together with a .htaccess file that does
a rewrite like this:
{{{
RewriteRule On
RewriteRule ^(tg-media-wrapper\.fcgi/.*)$ -
[L]
RewriteRule ^(.*)$ tg-media-wrapper\.fcgi/$1
[L]
}}}
(tg-media-wrapper.fcgi just sets LD_LIBRARY_PATH and execs dispatch.fcgi)
So: for this, we need to chomp the prefix "tg-media-wrapper.fci" off any
request.
request.object_path is neccessary so that the correct URLs are handed over
to TurboGears. But, there is a twist to it! When typing in a mounted
controller path without a trailing slash, TurboGears will perform a 302
redirect. For this, request.path needs to be stripped, too.
See VirtualPathFilter in attachment:dispatch.fcgi. It chomps off both
request.path and request.object_path.
--
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/1199>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Tickets" 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-tickets?hl=en
-~----------~----~----~----~------~----~------~--~---