question

wacbm-0396 avatar image
0 Votes"
wacbm-0396 asked SamWu-MSFT answered

How to hide/remove the port number in the url

I have a url: http://localhost:8080, now I want to remove the port number 8080, how can I do it?

windows-server-iis
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SamWu-MSFT avatar image
0 Votes"
SamWu-MSFT answered

Hi @wacbm-0396

Default port for HTTP is 80, so you can just change your port to 80, about how to change port number you can use the iis url rewrite modules.

You should install the URL Rewrite and the ARR (Application Request Routing) modules for IIS. Here are two links on how these can work together to create a reverse proxy to do what you want:

If the answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.