Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Is it possible to change the portnumber to which IIS 7 is listening for incoming questions, if I have Apache and want it to listen to port 80 and IIS 7 to 8080?

And this setting should be serverwide and not just sitewide sort of a "global" change?

share|improve this question

2 Answers 2

up vote 3 down vote accepted

You need to configure this setting for the Default Web Site and for each and every other site, if you have defined any.

It can be configured in the "Bindings" section of each site properties.

In the default configuration, you will only have one site (called "Default Web Site"), which will answer to any request on any IP address the server has, using port 80; in this scenario, you only need to modify this setting to have it listen on port 8080.

share|improve this answer
    
Ok and if I change the defaults sites listening port, does that mean that every new site I add will get the defaults sites "properties"? –  Chris_45 Nov 20 '09 at 9:17
    
In a word: No. The "Default Website" is just the name of the first site automatically created by IIS, its properties will not affect any new sites you create. (Each site can be told to listen to a different port.) Hope that helps. –  Django Reinhardt Nov 20 '09 at 9:52
    
Ok great thanks! –  Chris_45 Nov 20 '09 at 10:33
    
The Default Web Sites handles requests which are not explicitly managed by other sites. A site can listen on given IPs/ports and respond to specific host headers; if a request comes in which no site wants to handle, it goes to the default web site, which (by default) listens on every IP on port 80 and accepts any host header. –  Massimo Nov 20 '09 at 12:37

you can easily change the port by going to IIS manger and then selecting Default website in left panel,then opening edit bindings and then edit the port number.For more info with screenshots go here - http://www.superpctricks.com/2013/11/running-iis-and-apache-on-same-server.html

share|improve this answer
    
Hello, it's better if you include screenshots and details in your answer, instead of linking. –  coincoin Nov 27 '13 at 12:52

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.