Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8753023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:20:52+00:00 2026-06-13T13:20:52+00:00

I must have read every single article on the internet regarding Redmine and Apache

  • 0

I must have read every single article on the internet regarding Redmine and Apache and I still cant get it to work!

I have Redmine running on http://server:3000 perfectly using Thin. We have another Apache service on the same server which hosts our internal web tools on a different port (8096) so I would like Redmine to follow the same convention.

In that respect on Apache in httpd.conf I’ve added:

ProxyPass /redmine http://127.0.0.1:3000/
ProxyPassReverse /redmine http://127.0.0.1:3000/
ProxyPreserveHost on

Which seems to work fine. If you type in http://server:8096/redmine it will bring up the Redmine start page, but clicking on any other link results is a 404.

It looks like its not appending the /redmine on links from the site as clicking on the ‘admin’ link takes me too http://server:8096/admin instead of http://server:8096/redmine/admin

I’ve also looked into adding any of the three below to config/environment.rb but there seems to be conflicting info on which to use, and none of them seem to:

ActionController::AbstractRequest.relative_url_root = "/redmine" 
ActionController::Base.relative_url_root = "/redmine" 
Redmine::Utils::relative_url_root = "/redmine" 

As always any help is greatly appreciated!

Edit::

I am also trialling out

ProxyPass /redmine http://server:3000
ProxyHTMLURLMap http://server:3000 /redmine
<Location /redmine>
    ProxyPassReverse http://server:3000
    SetOutputFilter proxy-html
    ProxyHTMLURLMap /               /redmine/
    ProxyHTMLURLMap /redmine/       /redmine
</Location>

but seems to have the same result. Interestingly, if I access http://localhost:8096/redmine from the local server all the links seems to work and direct to the correct page, except the CSS and JS is not working.

If remotely I manually type in any of the links http://server:8096/redmine/admin then I get the correct page with CSS etc, it’s just the linking between pages that isn’t working!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T13:20:52+00:00Added an answer on June 13, 2026 at 1:20 pm

    Man, I’ve never seen an working setup of apache proxy changing context like this:

    ProxyPass /redmine http://127.0.0.1:3000/
    

    This should work:

    ProxyPass /redmine http://127.0.0.1:3000/redmine
    

    To do that, you need to setup your backend server (mongrel or whatever) to work on a sub-uri.

    I would suggest you to use mod_passenger instead. This is the easiest way to setup redmine and it doesn’t involve proxy. Here follows my setup:

    brunojcm@brunojcm-htpc:~$ cat /etc/apache2/sites-available/redmine 
    <Directory /var/www/redmine>
        RailsBaseURI /redmine
        PassengerResolveSymlinksInDocumentRoot on
    </Directory>
    

    Where /var/www/redmine is a link to your public redmine folder.

    brunojcm@brunojcm-htpc:~$ ll /var/www/redmine
    lrwxrwxrwx 1 root root 27 Sep  4  2011 /var/www/redmine -> /opt/redmine/current/public/
    

    You will also need to install mod_passenger. I don’t remember exactly how to do it, but I believe you need to gem install passenger and after run passenger-install-apache2-module and follow the instructions.

    Hope it helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have read Joel's article The Absolute Minimum Every Software Developer Absolutely, Positively Must
I have literally read every stackoverflow thread regarding changing the video tag source dynamically
I have read on MSDN( see Important note ) that RSACryptoServiceProvider must be disposed.
First off, rest assured that I've read every Oracle Java article & tutorial about
We have two applications running on single machine,one of which is web application that
Possible Duplicate: every derived table must have its own alias i have two MYSQL
I have read questions and answers about this topic but I still have some
I must have a misunderstanding of the stack, or how functions are called, the
This must have an obvious solution, but I'm stumped. We are developing an application
I must have pressed on the wrong button at some point, and now when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.