How do you assign port 80 or 443 to a website in IIS during deployment?

Ports are set via bindings,
In IIS Manager, expand sites and select your websites.
In the Actions pane, click bindings then click Add. Set,
Type: http for port 80 , https for port 443
Ip address: usually * (all unassigned) or you can assign a specific IP
Port: 80(http) or 443(https)
Host Name: Optional (for host header-based sites; useful if multiple sites share the same IP/port).
For https: you can also select an SSL certificate for bindings.
Click Ok and restart the site if required.
Bitte loggen Sie sich ein, um zu fragen, zu antworten, zu teilen, zu wählen und abzustimmen.