Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an apache2 server running on an Ubuntu 10.10 server box back home. The machine serves up some documents and misc. file. I currently access it globally at http://X.X.X.X:<portnumber>/dir/file.

I have no interest in registering a domain name since this is something very small but is there a way that I could access it globally by entering http://mysite:<portnumber>/dir/file?

Would this be changed somewhere in apache.conf or httpd.conf? Is this something that I need to add to the router to have requests for that url be associated with the IP?

I have found this on this site, but works with a domain name you have acquired. Is there something similar I can do since I am not using port 80?

You may also want your site to respond to, since many users will assume the www prefix is appropriate. Use the ServerAlias directive for this. You may also use wildcards in the ServerAlias directive.

For example, the following configuration will cause your site to respond to any domain request ending in

ServerAlias *

Could I just use ServerAlias *<portnumber>/dir/file?

share|improve this question
up vote 1 down vote accepted

http://mysite is not FQDN (fully qualified domain name) and wont work globally.

There are several free providers that can point a subdomain (ie to your IP.
DynDNS are big. offers a large selection of domain names that are easy to remember

When you have set up a FQDN that points to your IP you can use that in your conf-files instead of

edit: Your ISP should also have a hostname set to your IP. You can find it by doing a reverse lookup or visit a page like This hostname will look something like: and may change if you have a dynamic IP.

share|improve this answer
So this cannot be accomplished without registering/paying someone? – sealz Mar 2 '12 at 19:05
Absolutely. Most people use it to get a hostname that is easy to remember and static even if your IP changes. – micke Mar 2 '12 at 19:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .