Hi, Reposting a message from the Users group, since I didn't find a solution there:
http://groups.google.com/group/trac-users/browse_thread/thread/bc3a2c9d7c172fcb We have a setup where the location "http://frontend/lab/trac" is mapped via ProxyPass and ProxyReversePass to "http://lab-backend/ trac". Note that not only the server name, but the path also gets modified ... so we need something more than just the ProxyPass and ProxyReversePass settings. In its default setup, trac generates links with URL's starting with "/trac/something", which obviously get rendered as "http://frontend/ trac/something", and hence don't work. We are looking for a way to set base_path in the ini file, so that every URL starts with "/lab/trac/" instead of the autodetected "/ trac/". As an example, here's the corresponding way of doing it in dokuwiki on the same setup: http://wiki.splitbrain.org/wiki%3Aconfig#basedir basedir Usually DokuWiki can detect the directory that it is installed in on its own. But sometimes this does not work for various reasons. If DokuWiki does not seem to function properly and cannot find things such as images for its web pages, you can set the directory here. The path you should set here, is the path from the server root to your DokuWiki installation. Eg. if your wiki is available at http://www.yourserver.com/dokuwiki/ you should set basedir to /dokuwiki/. Be sure to have a leading and a trailing slash! In order to do this in trac, I made a quick hack that reads base_path from the ini file, and puts it in the environment just like base_url. The modification isn't complete yet, since it breaks if the variable base_path is not set, instead of using an autodetected value for base_path. I would like to know if another way to tackle this situation already exists, or should I go ahead and build a complete patch? Sameer. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Development" 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/trac-dev?hl=en -~----------~----~----~----~------~----~------~--~---
