Get the default configuration file ports.conf for Apache, optimized for Debian GNU/Linux 8 (jessie). 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.conf
Listen 80
<IfModule ssl_module>
Listen 443
</IfModule>
<IfModule mod_gnutls.c>
Listen 443
</IfModule>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Download the raw file with wget or curl
wget -O ports.conf.example https://exampleconfig.com/static/raw/apache/debian8/etc/apache2/ports.conf
curl https://exampleconfig.com/static/raw/apache/debian8/etc/apache2/ports.conf > ports.conf.example
Other config files you might find useful