Project

General

Profile

Redmine context change (URL)

Added by Daniel Garcia over 13 years ago

Hello everyone:

I would really appreciate if someone could help me with this.

I got my redmine working on my Linux Server using typical URL http://IP/redmine

I need to use another URL instead, something like http://IP/whatever

I guess it is a change of context or something like that, but I'm guessing this won't be just changing a folder's name.

Could anyone please help me out?

Thanks a lot


Replies (4)

RE: Redmine context change (URL) - Added by David Skowronski over 13 years ago

If you are using mongrel.

change
Redmine::Utils::relative_url_root = "/redmine"

to

Redmine::Utils::relative_url_root = "/whatever"

Then change web server config file if needed.

RE: Redmine context change (URL) - Added by Daniel Garcia over 13 years ago

I am not sure if I am using mongrel. I can not fine the file you posted about.

The only thing similar I can find is:

/usr/share/rails/railties/lib/rails/mongrel_server/commands.rb

"ActionController::Base.relative_url_root = defaults[:prefix]"

Any clue?

RE: Redmine context change (URL) - Added by Daniel Garcia over 13 years ago

Ok, I got it, just changing:

<Directory /var/www/*cecs*>
RailsBaseURI /*cecs*
PassengerResolveSymlinksInDocumentRoot on
</Directory>

and I did work.

Thanks

RE: Redmine context change (URL) - Added by Daniel Garcia over 13 years ago

Daniel Garcia wrote:

Ok, I got it, just changing file /etc/apache2/sites-enabled/000-default , value: "context" for whatever I need:

<Directory /var/www/context>
RailsBaseURI /context
PassengerResolveSymlinksInDocumentRoot on
</Directory>

and I did work.

Thanks

    (1-4/4)