0
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
?
So this cannot be accomplished without registering/paying someone? – sealz – 2012-03-02T19:05:07.843
Absolutely. Most people use it to get a hostname that is easy to remember and static even if your IP changes. – micke – 2012-03-02T19:33:21.587