[Bug 1105411] [NEW] apache2 default conf file contains Listen directive

John Moser john.r.moser at gmail.com
Fri Jan 25 20:12:40 UTC 2013

Public bug reported:

The default Apache 2 config file /etc/apache2/ports.conf contains a
Listen directive.

This directive is extraneous and unnecessary:  The default configuration
includes a VirtualHost that listens on Port 80.  SSL configurations
listen on Port 443.  Removing the global Listen directives does not
change this behavior; however if the default site is removed or moved to
another port, Apache continues to listen on that port.  For example, if
Apache listens on Port 80 and you change the default site to listen on
port 1080, Apache will listen on Port 80 and Port 1080 due to the Listen
directive in ports.conf.

By removing or commenting the Listen directive, Apache will no longer
listen on Port 80 if no VirtualHost exists that specifies Port 80.  This
reduces the number of open ports, and leaves Port 80 open for other

Leaving the Listen directive in ports.conf as-is is not particularly
harmful; it does however lead to minor, momentary confusion or excessive
open ports when unfamiliar users configure Apache in exotic ways.  As it
is unnecessary, it should be disabled.

** Affects: apache2 (Ubuntu)
     Importance: Low
         Status: New

You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to apache2 in Ubuntu.

  apache2 default conf file contains Listen directive

To manage notifications about this bug go to:

More information about the Ubuntu-server-bugs mailing list