Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We currently have an internal site set up for IT at, which hosts a single Redmine site.

I want to set up Apache so that if a user goes to it redirects them to as a shortcut.

I added a <VirtualHost> at the end of my httpd.conf, and now whenever I try to hit the main site ( the browser goes into an infinite redirection loop:

Here is my httpd.conf:

LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-4.0.37/buildout/apache2/
<IfModule mod_passenger.c>
  PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-4.0.37
  PassengerDefaultRuby /usr/bin/ruby

DocumentRoot /var/www/redmine-2.4.3/public
ErrorLog logs/redmine_error_log
SetEnv RAILS_ENV production
SetEnv RailsEnv production

#If you are using mod_fcgid and are going to upload files larger than
 #131072 bytes you should consider adding the following line
#that allows to upload files up to 20 mb
MaxRequestLen 20971520

<Directory "/var/www/redmine-2.4.3/public">
    Options Indexes ExecCGI FollowSymLinks -MultiViews
    Order allow,deny
    Allow from all
    AllowOverride all

<VirtualHost *:80>
  Redirect /

So it looks like the VirtualHost is being ignored and the rules for are ALWAYS in effect - thus causing the infinite redirect...

share|improve this question
up vote 7 down vote accepted

I think you need to wrap your existing definition in a <VirtualHost> block. I think this is being caused because without the vhost definition for, becomes the default vhost. In the event that a suitable vhost isn't found this is what will be served which then comes back to itself ...

share|improve this answer
This was it! Thanks! – DOOManiac Apr 4 '14 at 15:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.