Forum: Ruby on Rails Help with NameVirtualHost

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Stephen Boulet (Guest)
on 2006-03-08 09: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!

iphan (Guest)
on 2006-03-08 16:03
This works for me:

#Listen 80
Listen myport

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
This topic is locked and can not be replied to.