Right now I access my dev. server as localhost.
How do I change it so that I can type "myservername" and it will work as an "alias" for localhost?
Add an entry to your hosts file such as:
127.0.0.1 myservername.mydomain.local myservername
Where the file is located depends on your OS but all files are the same.
Add an entry for "myservername" in your hosts file.
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
By posting your answer, you agree to the
terms of service.
3 years ago