Subdirectory problem with Redmine 2.1.2 under Windows
Added by Mickael BARON about 12 years ago
Dear Redmine users,
I'm trying to configure my Redmine instance to run in a subdirectory of my web site such as http://localhost/redmine. I'm using the last version of Redmine 2.1.2 with PostgreSQL and the Thin web server under Windows 2003 Server. I hoped to configure Apache HTTP with a proxy to define the subdirectory but i encountered a problem.
This URL http://localhost/redmine is working but all links from this page are bad. In fact the Redmine subdirectory is missing for each link. For instance 'http://localhost/redmine/admin' should appear; unfortunately 'http://localhost/admin' appears.
At the end of config/environment.rb
Redmine::Utils::relative_url_root = "/redmine"
The http.conf file
ProxyPass /redmine balancer://redmine_cluster ProxyPassReverse /redmine balancer://redmine_cluster <Proxy balancer://redmine_cluster> BalancerMember http://127.0.0.1:3001 </Proxy>
My Redmine Configuration
Environment: Redmine version 2.1.2.stable Ruby version 1.9.3 (i386-mingw32) Rails version 3.2.8 Environment production Database adapter PostgreSQL Redmine plugins: no plugin installed
Any idea ?
Mickael
Replies (1)
RE: Subdirectory problem with Redmine 2.1.2 under Windows - Added by Mickael BARON about 12 years ago
Hi,
I've just fixed my problem, now i can connect with redmine to this URL : http://localhost/redmine
From a BitNami Redmine stack installation i compared the different configuration files.
Here are my approach for solving my problem
Thin server
Before
thin start -p 3001 -e production
After
thin start -p 3001 -e production -c d:\tools\redmine --prefix /redmine
HTTP Conf
ProxyPass /redmine balancer://redminecluster ProxyPassReverse /redmine balancer://redminecluster <Proxy balancer://redminecluster> BalancerMember http://127.0.0.1:3001/redmine </Proxy>additional_environment.rb file
- Rename additional_environment.rb.example to additional_environment.rb.example
- Input this line config.action_controller.relative_url_root = '/redmine'
Mickael