Point a local domain to localhost:3000
Hey, I would love to point a local domain to localhost:3000 or other ports on which I am running my Wubrick instances (for Rails)
I can not find an apache2 config to point a local domain to these wubrick in开发者_Python百科stances (or simply localhost:3000). Can some one please help me with that?
Regards,
Nikhil GuptaOK. Found the solution, as below:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName rails.new
ServerAlias www.rails.new rails
PassengerEnabled Off
ProxyPass / http://127.0.0.1:3000/
ProxyPassReverse / http://127.0.0.1:3000/
</VirtualHost>
If you want something even simpler and convenient you can use this project it does the same without the config stuff
https://github.com/cristianoliveira/ergo
精彩评论