2

I am very new to node, and just trying to start building an app in the sails framework.

I would like to point http://mywebsite.local to the sails app on localhost:1337 if possible?

I have added an entry to the windows hosts file as such:

127.0.0.1:1337 mywebsite.local

Thanks

mrpetem
  • 323
  • 1
  • 8
  • 1
    You can modify your hosts file to solve the name part. Changing the port redirection is not possible as far as I know unless your use a proxy server or change the default port your browser uses. – PeterVC Mar 13 '15 at 20:14
  • 2
    This answer might help as well (http://stackoverflow.com/questions/8652948/using-port-number-in-windows-host-file) – PeterVC Mar 13 '15 at 20:18
  • The [sails gitter room](https://gitter.im/balderdashy/sails) is also a good place to chat. – Travis Webb Mar 15 '15 at 00:40
  • See the answer with netsh in this question: https://stackoverflow.com/questions/8652948/using-port-number-in-windows-host-file – JSamir Oct 11 '17 at 07:35

0 Answers0