0

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.

1

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.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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