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 6380155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:13:52+00:00 2026-05-25T02:13:52+00:00

I have a simple Rails 3.1.rc6 app that I’m using to try to test

  • 0

I have a simple Rails 3.1.rc6 app that I’m using to try to test SSL configurations on my test server (OS X 10.7 Server). I’m using Phusion Passenger and Apache.

I can run the app with no problem when not using SSL. When I enable SSL, either via Apache or via config.force_ssl = true in my environments/production.rb file, a page loads without an error, but it’s mostly empty and it’s not my site. It appears as if it’s trying to serve files out of an empty directory.

I checked the Edge Rails Documentation for configuring SSL and it only mentions adding the config.force_ssl = true option, saying that will automatically engage the Rack::SSL middleware.

When I load the page, I’m seeing:

Index of /

    Name    Last modified   Size    Description

Apache/2.2.19 (Unix) mod_ssl/2.2.19 OpenSSL/0.9.8r DAV/2 Phusion_Passenger/3.0.8 Server at mysite.mydomain.com Port 443

The exact same thing happens if I remove the ssl config line in the rails app and use the Server tools to force the site to SSL (selecting a self-signed certificate for testing). What do I need to change to make it serve the ... myapp/current/public folder, like it does when I have config.force_ssl = false?

Edit: A little more information. I see the following in /var/log/apache2/error_log:

[Fri Aug 26 10:57:49 2011] [notice] caught SIGTERM, shutting down
[Fri Aug 26 10:57:50 2011] [warn] RSA server certificate CommonName (CN) `My-Mac-mini.local' does NOT match server name!?
...
[Fri Aug 26 10:57:50 2011] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
httpd: Could not reliably determine the server's fully qualified domain name, using myserver.local for ServerName
[Fri Aug 26 10:57:50 2011] [warn] _default_ VirtualHost overlap on port 443, the first has precedence
[Fri Aug 26 10:57:50 2011] [warn] _default_ VirtualHost overlap on port 443, the first has precedence
[Fri Aug 26 10:57:50 2011] [warn] RSA server certificate CommonName (CN) `My-Mac-mini.local' does NOT match server name!?
...
[Fri Aug 26 10:57:50 2011] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Fri Aug 26 10:57:50 2011] [notice] Apache/2.2.19 (Unix) mod_ssl/2.2.19 OpenSSL/0.9.8r DAV/2 Phusion_Passenger/3.0.8 configured -- resuming normal operations
cache: [GET /] miss
  • 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-05-25T02:13:53+00:00Added an answer on May 25, 2026 at 2:13 am

    This looks like a config bug with Lion server. Finally fixed it in the file /etc/apache2/extra/httpd-vhosts.conf by adding the line NameVirtualHost *:443 after the line NameVirtualHost *:80. I assumed that the server would do that on its own accord if it were hosting several SSL sites, but it turns out that it doesn’t.

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

Sidebar

Related Questions

I have started using jQuery and rails. I have made a simple form that
I have a simple Rails 3 blog app that needs an admin user so
I have a simple rails app that is like an event system which has
I have built a simple rails app with three classes that inherit from ActiveRecord
I have a really simple Rails app. Basically an article with comments. I want
I have built a very simple blog application using Ruby on Rails. New to
I have a simple rails app where user can send a mass email to
Let's say I have the simple rails blog app. And I have a custom
I have made a simple Rails application that allows people to comment on posts.
I have a really simple Rails application that allows users to register their attendance

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.