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 am running a Web Server which has single dynamic IP and many websites are running on several different ports. The server I am running are IIS7 and WAMP. I have around 5 websites in total running each on different port.

I also have 5 different domains of .com tld. Can I point each domain to different port keeping the same IP address? If yes, is there a guide? I am using Namecheap as my domain provider.

share|improve this question
up vote 2 down vote accepted

Domains cannot be pointed at a port. If you want each domain to point at a different web application on the server then you will need to configure each virtual host on the web server to either use a reverse proxy, or perform a rewrite or redirect to the corresponding port.

share|improve this answer
    
Can IIS7 and Apache both do that? – Neutralizer Jun 20 '11 at 4:21
    
I know HTTPd can. Not sure about IIS7. – Ignacio Vazquez-Abrams Jun 20 '11 at 4:24
    
Ok can you please link to an article which describes it? Or your own written article with your experience? – Neutralizer Jun 20 '11 at 4:26
    
Which part do you want to know about, virtual hosts, reverse proxies, redirects, or rewrites? – Ignacio Vazquez-Abrams Jun 20 '11 at 4:26
    
Either reverse proxies, redirects or rewrites. You tell me which is the most efficient to do the thing I want. 5 domains need to be pointed to 5 web apps at same IP with different ports. – Neutralizer Jun 20 '11 at 4:30

You must log in to answer this question.

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