Environment
Novell iManager 2.5
Situation
Resolution
By default only two lines in the file have "Listen" on them. The first instance reads, "Listen 80" and is in the default scope of the file. The "Listen 443" line is in an <IfModule mod_ssl.c> block meaning that port 443 only listens if SSL is enabled, which it should be.
To change the ports, change (as the root user) the numeric part of those lines and restart Apache, which can be done with the following command
/etc/init.d/apache2 restart (rcapache2 restart may work as well).
Tomcat does not need to be restarted.
You should see Apache go down and come back up with a message of 'done' in green after the start before the prompt is returned.
Additional Information
Needing to change services from alternate ports back to 80 or 443 when Apache has been the second service installed to these ports and was changed automatically to other ports.
Sample listen.conf file:
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports. See also the <VirtualHost> directive.
#
# http://httpd.apache.org/docs-2.0/mod/mpm_common.html#listen
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
# When we also provide SSL we have to listen to the
# standard HTTP port (see above) and to the HTTPS port
#
# Note: Configurations that use IPv6 but not IPv4-mapped addresses need two
# Listen directives: "Listen [::]:443" and "Listen 0.0.0.0:443"
#
#Listen 12.34.56.78:80
#Listen 80
#Listen 443
Listen 80
<IfDefine SSL>
<IfDefine !NOSSL>
<IfModule mod_ssl.c>
Listen 443
</IfModule>
</IfDefine>
</IfDefine>
# Use name-based virtual hosting
#
# - on a specified address / port:
#
#NameVirtualHost 12.34.56.78:80
#
# - name-based virtual hosting:
#
#NameVirtualHost *:80
#
# - on all addresses and ports. This is your best bet when you are on
# dynamically assigned IP addresses:
#
#NameVirtualHost *