Apache ports.conf configuration example for Ubuntu 12.04 LTS (Precise Pangolin)

Get the default configuration file ports.conf for Apache, optimized for Ubuntu 12.04 LTS (Precise Pangolin). This example configuration ensures optimal compatibility and performance for Apache, making it easy to set up and adjust to meet your needs.

Find and download the configuration file here: /etc/apache2/ports.conf.

For more configurations and setup guides, visit our related files section to further customize your system.

    # If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default
# This is also true if you have upgraded from before 2.2.9-3 (i.e. from
# Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
# README.Debian.gz

NameVirtualHost *:80
Listen 80

<IfModule mod_ssl.c>
    # If you add NameVirtualHost *:443 here, you will also have to change
    # the VirtualHost statement in /etc/apache2/sites-available/default-ssl
    # to <VirtualHost *:443>
    # Server Name Indication for SSL named virtual hosts is currently not
    # supported by MSIE on Windows XP.
    Listen 443
</IfModule>

<IfModule mod_gnutls.c>
    Listen 443
</IfModule>


    
  

Config Details

Location
/etc/apache2/ports.conf
Operating system
Ubuntu 12.04 LTS (Precise Pangolin)
Length
23 lines
MD5 checksum
38b31d20326f3640a8dfbe1ff5d1c4ad

Usage

Download the raw file with wget or curl

Wget

wget -O ports.conf.example https://exampleconfig.com/static/raw/apache/ubuntu12.04/etc/apache2/ports.conf

cURL

curl https://exampleconfig.com/static/raw/apache/ubuntu12.04/etc/apache2/ports.conf > ports.conf.example