I want to have one of my domains running a RoR app. I have gone through countless tutorials on how to install ruby and get it running. I have managed to install Passenger (not sure how this even works) on apache2.
I have PHP installed, maybe this is the problem. In order to get a sintra app working, I have to do:
ruby my_app_name.rb
This then works on www.mydomain.com:4567
, how do I just get it running on www.mydomain.com
?
You can do a port redirect. No need for passenger or anything. Just run it on 4567 and remap it to 80 and you're fine. Of course only if you don't expect a lot of traffic. But if that's the case you should be good to go. Also turn off Apache and other servers you might be running.
This could be a starting point for you: https://help.ubuntu.com/community/IptablesHowTo