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
applications.

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.
https://bugs.launchpad.net/bugs/1105411

Title:
  apache2 default conf file contains Listen directive

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1105411/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to