Tuesday, March 12, 2013

[Rails] Re: How to change the url (from localhostL:3000) to (example.com)

this'll do it.

basically redirects port 80 to port 3000

sudo iptables -t nat -A OUTPUT -p tcp --dport 80 -d 127.0.0.1/8 -j
REDIRECT --to-port 3000

tested and works

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate