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 was just thinking it would be good to have port numbers with domain name at domain registrars.

For example if I have my site running at port 8000 I mean http://ipaddress:800 then in domain name if I use and port 8000 then I go to my home page

So that I don't have to use so that multiple servers can run in one OS.

Is there any complications in that?

Currently Apache handles that we have to use mod_rewrite things to make them work. But domain name can forward port numbers then that would be reduced

share|improve this question
up vote 5 down vote accepted

Yes, there is a complication, namely that domains don't work that way. A domain identifies a host, or a computer. So a domain name resolves to the IP address of that computer. A domain name does not and cannot identify a given port on that computer. It's not a simple text substitution where gets turned in to whatever string you want, it has to be a valid IP address.

What you should really be doing is configuring Apache with multiple virtual hosts so that it will respond to different domains appropriately, all on port 80. The documentation on this can be found here.

share|improve this answer

You must log in to answer this question.

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