Switching Web Applicaiton Ports

Is it possible to switch the port of a web application after it is created

For instance, I have a web app that is currently on port 82. I would like to switch it over to port 80 and add a host header in IIS to access that particular site. It seems that you just can't reconfigure IIS to do this. Sharepoint is still wants to see the web app on the port that it was created under.

If it is not possible I suppose I can just take care of it with DNS.



Answer this question

Switching Web Applicaiton Ports

  • lorenzosjb

    Changing the port in IIS should work. What may not change is the name of the site in WSS Admin, but that shouldn't matter.

    What are the symptoms of it not working for you


  • PhilippCH

    You should change the zone setting (i.e. address) for you webapp. Please go to Central Administration > Operations > Alternate Access Mappings > click the desired URL here. Here you have an option to change the address. Set it to whatever you want and click OK. IIS should reflect it itself (try iisreset if it doesn't). This worked for me. If IIS settings are still wrong after all this then you may try to set them manually.

    Good luck


  • senthil_palraj_e81a78

    The error I get back in the browser from http://<host header> is:

    HTTP/1.1 404 Connection: close Date: Tue, 27 Feb 2007 21:04:12 GMT Server: Microsoft-IIS/6.0 X-Powered-By: ASP.NET MicrosoftSharePointTeamServices: 12.0.0.4518

    Very odd...it's like it has trouble retrieving default.aspx.

    If I try to access http://<host header>/default.aspx, IIS returns a 404 File Not Found error.

    I get the same 404 for any other page I try to address directly, including sharepoint web services.

    I can access unmanaged files out of the site though which tells me that the site is responding correctly to requests, it's just that sharepoint doesn't seem to be grabbing the requests for its pages.


  • Harpreet Singh

  • Switching Web Applicaiton Ports