0

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
    </Directory>
</VirtualHost>

NameVirtualHost *:443

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

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.

1 Answer 1

1

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

-Tony

1
  • I did this (6 months back though). It works. Sep 26, 2011 at 9:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .