I wish to set my very own sever to operate my ruby on rails project(with passenger wordpress plugin). I personally use Apache2 on Ubuntu11.04(sever version).
It's my very first time to make use of Apache and that i read some documents.
Regrettably, I do not possess a domain title, can one just set Ip and employ Ip to gain access to this sever? Whether it's ok, how must i do?
It is the config sample distributed by passenger:
<VirtualHost *:80> ServerName www.yourhost.com DocumentRoot /somewhere/public <Directory /somewhere/public> AllowOverride all Options -MultiViews </Directory> </VirtualHost>
<VirtualHost *:80> ServerName example.com DocumentRoot /home/urpc-name/RailsApps/anything/public <Directory /home/webonise/RailsApps/anything/public> RailsEnv development AllowOverride all Options -MultiViews </Directory> </VirtualHost>
- In server title:choose ur virtual title...u can pick anything
- In document root and directory,give your rails project path
- Choose rails atmosphere in RailsEnv
- Put server title in virtual host-127...1 may be the localhost
- Then just see your browser and kind example.com
Hope this can help
Comment the line:
# NameVirtualHost *:80
Comment out any
Discover the line:
DocumentRoot "/var/www/html" # or whatever your config uses for the overall apache document root.
Change it out for your rails application's root.
Adding your other config configurations to some
<Directory /somewhere/public> AllowOverride all Options -MultiViews </Directory>
I've not examined this without a doubt, however, you should have the ability to reach it by only going to the Ip. Make certain you've Passenger installed, have run
passenger-install-apache2-module, and also have added the right module loading lines for your apache config.