Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

I have the following virtual hosts configuration blocks.

<VirtualHost *:80>
    DocumentRoot /var/www/html/TestApp/public/
    <Directory /var/www/html/TestApp/public/>
        Allow from all
        Options -MultiViews

NameVirtualHost *:443

<VirtualHost *:443>
    DocumentRoot /var/www/html/TestApp/public/
    <Directory /var/www/html/TestApp/public/>
        Allow from all
        Options -MultiViews
    SSLEngine on
    SSLCertificateFile /etc/pki/tls/certs/server.crt
    SSLCertificateKeyFile /etc/pki/tls/private/server.key

I trying to serve a Rails App off Passenger on Apache.

The Problem:

The TestApp works fine with Apache and Passenger when not using SSL When I use https://, I see the contents of /var/www/html

The path to TestApp is /var/www/html/TestApp

Any help will be much appreciated.

share|improve this question
up vote 1 down vote accepted

Check your Apache conf file and make sure that there is no other SSL-enabled virtualhost is being added. If your using a stock Apache installation, most likely the SSL-enabled virtualhost that is causing the problem is within /etc/httpd/conf.d/ssl.conf


share|improve this answer
I did this (6 months back though). It works. – Aditya Manohar Sep 26 '11 at 9:21

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.