Saturday, September 3, 2011

How To add a HTTPS address to your etc/hosts File

First Open your hosts file on   /etc/hosts on Linux  OR  C:\Windows\System32\drivers\etc on Windows systems

As known, the default port for web browsing is port 80, so every record inserted in the hosts file as default use port 80.

In order to add an "https" address just specify the ssl port for the desired record like so:

127.0.0.1:443    mysite.com

Now https://mysite.com will be handled by your localhost

No comments:

Post a Comment