Virtualmin - Added Virtual Server - Stopped access to Rails app?

Posted by Dan on Server Fault See other posts from Server Fault or by Dan
Published on 2010-02-13T15:59:39Z Indexed on 2010/04/04 12:03 UTC
Read the original article Hit count: 397

Filed under:
|
|

Hi,

Sorry if this sounds pretty simple, I'm new to Virtualmin and running servers in general. I recently purchased a VPS and installed Virtualmin with no problems. I then installed mod_rails and uploaded my first rails app, which I got working by adding the following to my apache httpd.conf file:

<VirtualHost *:80>
ServerName testing.mydomain.com
DocumentRoot /home/myapp/public    
<Directory /home/myapp/public>
Allow from All
AllowOverride all             
Options -MultiViews           
</Directory>
RailsBaseURI /
</VirtualHost>

I then tried adding a virtual server through Virtualmin, using mydomain.com. Now, the site this created (plus several sub-servers) and working as expected. However, my original Rails app is no longer accessible.

The URL now sends me to the parent application (ie mydomain.com)

The Rails app is not located within the parent's application directory, would this be a problem?

Can anyone help?

Any advice appreciated.

Thanks.

© Server Fault or respective owner

Related posts about virtualmin

Related posts about rails