Remove /redmine from URL's

Added by Schollii Tron over 9 years ago

Hello, does anyone know how to have URL for redmine server without /redmine at start of every URL? For instance instead of reaching the home page via

http://projects.myshop.org/redmine

the user would just type in

http://projects.myshop.org

It doesn't seem possible to do that via the Apache config alone because the redmine application generates HTML in which all href's start with /redmine. So once at http://projects.myshop.org/redmine, if I hover my mouse over Administration, the URL is http://projects.myshop.org/redmine/admin, rather than the preferable http://projects.myshop.org/admin. The apache server would have to edit the HTML returned to correct this, I really doubt that this is the way it is done at www.redmine.org.

I checked the redmine.org website and it doesn't have the /redmine at the start of URL's.

Any ideas?

Replies (7)

RE: Remove /redmine from URL's - Added by Felix Schäfer over 9 years ago

What server do you use for Redmine (passenger, cgi, reverse proxy, …)? Rails tries to guess what address it is running on and that works good in most setups, so just try to change your apache config to server redmine from / instead of from /redmine/, that should take care of things.

RE: Remove /redmine from URL's - Added by Schollii Tron over 9 years ago

I'm using out-of-the-box bitnami redmine setup, which uses apache. I'll take a look at the apache config file, but from what I read on http://bitnami.org/forums/forums/redmine/topics/domain-name-and-site-directory, redmine uses a local conf file that might need editing too.

RE: Remove /redmine from URL's - Added by Felix Schäfer over 9 years ago

Ok, on such a setup you will also need to remove the prefix in the config file (on a reverse proxy setup, the Redmine server can't know what URL it is served by the reverse proxy from).

RE: Remove /redmine from URL's - Added by Schollii Tron over 9 years ago

Finally got a chance to try this but it didn't work. I only edited the apache .conf file (which is in fact, in bitnami setup, in <bitnami>/apps/redmine/conf/redmine.conf -- it is loaded by httpd.conf). I could not find any other files that needed editing. When I opened the http://projects.myshop.org I got a server error. Note that in the default setup, http://projects.myshop.org points to a default html page that shows a link to the redmine page, so it could be that just editing the .conf as I did wasn't enough to clearly state which page should be loaded when just the base URL was entered. I've given up for now.

RE: Remove /redmine from URL's - Added by Felix Schäfer over 9 years ago

Well, your best bet would be to ask on the bitnami forums, I don't know enough about their setup to really be able to help you, sorry.

RE: Remove /redmine from URL's - Added by Robert Hartman over 9 years ago

Oliver, did you find a solution? I'm looking to do the same thing.

RE: Remove /redmine from URL's - Added by Oliver Schoenborn over 9 years ago

Robert Hartman wrote:

Oliver, did you find a solution? I'm looking to do the same thing.

No. I would like to try http://bitnami.org/forums/forums/redmine/topics/rewriting-the-redmine-url-on-windows soon. Let post if you have success with that.

(1-7/7)