Howdy! We're deploying an application within a "directory" of our client's server. We have the following inside the Apache configuration for their virtualhost, though it can (in theory) work well enough within a .htaccess file, if you allow mod-rewrite:
RewriteEngine On AddDefaultCharset utf-8 RewriteRule ^/static/(.*) /path/to/application/static/$1 [L] RewriteRule ^/booking/static/(.*) /path/to/application/static/$1 [L] RewriteRule ^/booking/(.*) http://localhost:8080/booking/$1 [P,L] Our prod.cfg looks like this: [global] # ... server.webpath = "/booking" [/] base_url_filter.on = True #baseUrlFilter.baseUrl="http://www.domain.tld/booking/" base_url_filter.use_x_forwarded_host = True Once we realized that the redirection had to go through a similarly named subdirectory on the TurboGears side (localhost:8080/booking/$1 instead of localhost:8080/$1) all of the nit-picky issues we had with relative redirection went away, and this config works quite well, also allowing the static content to be served by Apache. Matthew Bevan, Systems Administrator Top Floor Computer Systems Ltd. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

