good-to-know
good-to-know

Reputation: 742

How to make domain name to point different port not 80 in IIS?

I have a domain just bought. Say it is: myowndomain.com. I have added A record with my SERVER IP address. We have two applications on our server. One is with port 3000 and other is with port 3001.

Now I would like to access my applications through this domain. It is working now when I call it by myowndomain.com:3000 and myowndomain.com:3001.

How to setup the system to load port 3000's application if I call myowndomain.com and load 3001's application if I call my.myowndomain.com. [subdomain my.myowndomain.com is also added in godaddy]

Upvotes: 0

Views: 4701

Answers (2)

good-to-know
good-to-know

Reputation: 742

Simple. I just have to add domain name alias in HTTP binding and save.

Upvotes: 1

UsmanMirza
UsmanMirza

Reputation: 276

I think you need to do this by using URL Rewriting. Please have a look on below link from iis, here is given complete demo how you can do this:

https://www.iis.net/learn/extensions/url-rewrite-module/creating-rewrite-rules-for-the-url-rewrite-module

you can install ur rewriting from here:

https://www.iis.net/downloads/microsoft/url-rewrite

by using this on your applications you can move individual pages also to a specific url. hopefully it will resolve your problem.

Upvotes: 0

Related Questions