Forum: Ruby on Rails Help with NameVirtualHost

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
A3414e929f7c39da2fb07ef3b973bc25?d=identicon&s=25 Stephen Boulet (Guest)
on 2006-03-08 08:11
(Received via mailing list)
Can someone help with Apache2 configuration?

What I want to have is for "http://myipaddress/myrailsapp" to bring
up myrailsapp. My apache 2 is already serving up php apps, and I
don't want to clobber those. Thanks!

Stephen
Cac068c9c92719a59db960b2fa51719c?d=identicon&s=25 iphan (Guest)
on 2006-03-08 15:03
This works for me:

#Listen 80
Listen myport

#ServerName www.example.com:80
ServerName myipaddress:myport

<VirtualHost myipaddress:myport>
  ServerName myipaddress:myport
  DocumentRoot /path_to_myrailsapp/public/
  ErrorLog /path_to_myrailsapp/log/server.log
  <Directory /path_to_myrailsapp/public/public/ >
    Options ExecCGI FollowSymLinks
    AllowOverride all
    Allow from all
    Order allow,deny
  </Directory>
</VirtualHost>
This topic is locked and can not be replied to.