Project

General

Profile

Need help with VirtualHost setting for Redmine

Added by Ajeet Raina about 12 years ago

Hello,

I have redmine 2.0.3 installed on CentOS 5.8 machine and been successfully working. I can browse it through http://codescope.com/redmine. But I want to browse it directly through codescope.com and dont want to include /redmine.
My httpd.conf looks like:

[code]
<VirtualHost 51.24.112.96:80>
ServerName codescope.com
ServerAlias www.codescope.com
RailsBaseURI /redmine
DocumentRoot /home/codes/public_html
<Directory /home/codes/public_html/redmine>
Options -MultiViews
</Directory>

[/code]

Whenever I am trying to make change like:

ServerName codescope.com
ServerAlias www.codescope.com
RailsBaseURI /
DocumentRoot /home/codes/public_html/redmine

Its throwing error like No config/environment.rb found.
Am I doing right?


Replies (1)

RE: Need help with VirtualHost setting for Redmine - Added by Ajeet Raina about 12 years ago

I fixed it through:

RailsBaseURI /
RailsEnv production
DocumentRoot /home/codes/public_html/redmine/public
<Directory /home/codes/public_html/redmine/public>

Thanks.

    (1-1/1)