1

Is it possible to mask the hostname with an Alias and variables?

For example:

I would like to call http://easyNameToRemember/path/to/file

instead of:

http://uglyServerName:8000/the/real/path/to/file

Basically, 'easyNameToRemember' would hold the servername, port, and static API path.

4
  • Alias and cnames only work for hostnames , no ports included, you could try an alias+http redirect to get an easier way for users to reach your server.
    – arana
    Mar 14, 2017 at 14:53
  • are you per chance searching for something like yourls.org ? Mar 14, 2017 at 14:58
  • you are mixing two different things. The first thing you are asking for is a DNS A entry or CNAME for your ugly server name. and the second if you want to "hide" a non-typical server port, you would need to place a reverse proxy at the front. Mar 15, 2017 at 11:22
  • The answer may depend if you want this to work only from your machine or if you want to do it for everyone (worldwide). Mar 16, 2017 at 22:27

0

You must log in to answer this question.

Browse other questions tagged .