M
M
MagDarkElf2019-12-16 19:02:48
IIS
MagDarkElf, 2019-12-16 19:02:48

How to remove port number from project url?

The web application is launched at the address https://localhost:44327/abc - everything works correctly
The address is needed without specifying the port https://localhost/abc
I change the value of the "Project URL" field in the Web item from " https ://localhost:44327/abc " to " https://localhost/abc "
VS prompts to create a virtual directory, I agree
Run and nothing works
"Cannot display this page
•Make sure the web address https://localhost is correct •Find the
page using a search engine
•Refresh the page in a few minutes."
What is wrong and what needs to be done to make it work

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
MagDarkElf, 2019-12-17
@MagDarkElf

Port 80 is used for the http protocol
443 port is used for the https protocol,
but the application does not start on it. a certificate is not bound to port 443
when installing IISExpress certifies with its self-signed certificate another segment of ports to the certificate (from 44300 to 44399)
And in order to add port 443 to them, you need to do what this guy described
https://benjii.me/2014/11 /run-iis-express-on-port-...
last item "Now using HTTPS and SSL"

A
Alexander, 2019-12-16
@NeiroNx

Port 80 is used without specifying a port. Use port 80 instead of 44327 in project settings.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question