Virtualhost not working

Added by Jake D about 9 years ago

Hey everyone, I'm at my wits end here. I've installed redmine and it works fine on the webrick server, but I'm trying to use passenger and when I go to the domain I set up as a virtualhost in the /etc/httpd/conf/httpd.conf nothing happens. I just go to the normal site. Here's how the relavent section of the httpd.conf file looks like

#ErrorLog logs/
#    CustomLog logs/ common
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

LoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.2/ext/apache2/
PassengerRoot /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.2
PassengerRuby /usr/local/bin/ruby

<VirtualHost *:80>
    DocumentRoot /opt/redmine-1.0.5/public/
    <Directory /opt/redmine-1.0.5/public/>
        Allow from all
        Options -MultiViews
        AllowOverride None

Am I doing something wrong here? I've heard that the .htaccess file can somehow interfere with this, is that what is happening? Sorry if this is a very noobish question.

Replies (1)

RE: Virtualhost not working - Added by Felix Schäfer about 9 years ago

Try just removing the .htaccess and see what happens. Have a look at your apache logs too and post the relevant parts here.