Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 www.ubunturocks.com, 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 .ubunturocks.com.

ServerAlias *.ubunturocks.com

Could I just use ServerAlias *.mysite.com:<portnumber>/dir/file?

share|improve this question

1 Answer 1

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 mysite.dyndns.com) to your IP.
DynDNS are big. Afraid.org 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 ubunturocks.com.

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 whatsmyip.org. This hostname will look something like: 173-194-32-41.hsds543fsad2.ISPName.com 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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.