FreeKB - Apache (Web Server) Listen directive
Apache (Web Server) - Listen directive

The Listen directive configures a web server instance to listen for HTTP and HTTPS connections on one or more ports. In this example, the web server instance will listen on port 80.

Listen 80

 

When you have two or more web server instances on a single server, one option is to give each instance it's own unique port.

# instance "a"
Listen 80

# instance "b"
Listen 8080

 

Or, both instances could listen on port 80 by assigning different IP addresses to each instance, assuming the server has these IP addresses bound to the network interface.

# instance "a"
Listen 10.15.225.14:80

# instance "b"
Listen 10.15.225.15:80

 

Or, hostnames can be used, assuming the hostnames are resolves to the approriate IP addresses bound to the network interface.

# instance "a"
Listen server1.example.com:80

# instance "b"
Listen server2.example.com:80

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter c0dd6 in the box below so that we can be sure you are a human.




Comments

Web design by yours truely - me, myself, and I   |   jeremy.canfield@freekb.net   |