Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've developed a small Rails app that I need to run on my local network. I got Apache2 and Phusion Passenger set up, and the app is running on the server at http://myapp.dev, but I am not sure how to set it up so that I can access the app from any computer on the network. I know that if I had it running on rails server with WebBrick, that I could reach the app from any computer by visiting 192.168.0.141:3000 (with 192.168.0.141 being my IP, of course). I want this type of functionality from my current setup.

Here's my VirtualHost configuration from my httpd.conf:

<VirtualHost *:80>
    ServerName myapp.dev
    DocumentRoot "/webapps/myapp/public"
    <Directory "/webapps/myapp/public">
        Allow from all
        Options -MultiViews
    </Directory>
</VirtualHost>

Here's a screengrab of my Server Admin settings:

Applications - Server - Server Admin

Everything else is default - I just set this up yesterday, and I really don't know how to configure it all that well yet.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Your document root points to /var/www and not "/webapps/myapp/public". And you need to make decision - you will either manipulate the conf files directly or use Server Admin. You can't do both because it leads to a total mess.

share|improve this answer
    
I'll keep this in mind, thanks. –  kivetros May 19 '11 at 14:00

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.