I lately produced a brand new Ruby on Rails 3 application in your area on the Mac OS, named "test".

Since I Have use apache2, within the private/etc/apache2/httpd.conf I set the VirtualHost for that "test" application:

<VirtualHost *:443>
  ServerName test.pjtmain.localhost:443
  DocumentRoot "/Users/<my_user_name>/Sites/test/public"

  RackEnv development

  <Directory "/Users/<my_user_name>/Sites/test/public">
    Order allow,deny
    Allow from all
  </Directory>

  # SSL Configuration
  SSLEngine on
  ...
</VirtualHost>

<VirtualHost *:80>
  ServerName test.pjtmain.localhost
  DocumentRoot "/Users/<my_user_name>/Sites/test/public"

  RackEnv development

  <Directory "/Users/<my_user_name>/Sites/test/public">
    Order allow,deny
    Allow from all
  </Directory>
</VirtualHost>

Obviously I restart apache2, but attempting to use of http://test.pjtmain.localhost/ I've this error message from:

Opera

Oops! Firefox could not find test.pjtmain.localhost
Suggestions:

    *
      Search on Google:
      ...

SAFARI

Safari can’t find the server.
Safari can’t open the page “http://test.pjtmain.localhost/” because Safari can’t find the server “test.pjtmain.localhost”.

I've other RoR3 programs setted like this above within the httpd.conf file and all sorts of them work.

What's the problem (maybe it's not associated with apache...)?

Notes:

1. While using 'Network Uility'

Used to do a Ping using the following result:

ping: cannot resolve test.pjtmain.localhost: Unknown host

and that i did a Research using the follonwing result:

; <<>> DiG 9.6.0-APPLE-P2 <<>> test.pjtmain.localhost +multiline +nocomments +nocmd +noquestion +nostats +search
;; global options: +cmd
<MY_ISP_NAME>.com.  115 IN SOA dns1.<MY_ISP_NAME>.com. dnsmaster.<MY_ISP_NAME>.com. (
    2010110500 ; serial
    10800      ; refresh (3 hours)
    900        ; retry (15 minutes)
    604800     ; expire (1 week)
    86400      ; minimum (1 day)
    )

2. In /private/etc/hosts I've this code:

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1   localhost
255.255.255.255 broadcasthost
::1             localhost 
fe80::1%lo0 localhost

3. I'm using Phusion Passenger

4. Since I Have not transformed absolutely nothing to the brand new "test" application, I anticipate seeing the default RoR index.html page:

alt text

5. It appears that within the 'Console Messages' there's any warning or error

6. After run 'dscacheutil -flushcache', the 'dscacheutil -statistics' fact is:

Overall Statistics:
    Average Call Time     - 0.000304
    Cache Hits            - 5311
    Cache Misses          - 6113
    Total External Calls  - 5654

Statistics by procedure:

             Procedure   Cache Hits   Cache Misses   External Calls
    ------------------   ----------   ------------   --------------
              getpwnam         1496            149             1645
              getpwuid          749             11              760
              getgrnam          157             28              185
              getgrgid           76              7               83
         getservbyname         2818             15               26
         getservbyport            0              3                3
        getprotobyname            1              1                2
              getfsent            0              0                2
         gethostbyname           14           2816               13
         gethostbyaddr            0            116              116
    gethostbyname_service            0              0             2817
           _flushcache            0              0                2