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.

link|improve this question

80% accept rate
feedback

1 Answer

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.

link|improve this answer
Can IIS7 and Apache both do that? – Umair Ashraf 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? – Umair Ashraf 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. – Umair Ashraf Jun 20 '11 at 4:30
show 15 more comments
feedback

Your Answer

 
or
required, but never shown

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