awswordpress

Modify the Apache port

HTTP port

Under the default configuration, Apache will wait for requests on port 80. Change that by editing the httpd.conf file and modifying the value specified in the Port directive. For example:

Listen 8080

ServerName localhost:8080

Also change the port in /opt/bitnami/apache2/conf/bitnami/bitnami.conf in the VirtualHost directive:

<VirtualHost _default_:8080>

Restart the Apache server for the change to take effect.

HTTPS port

Apache waits for HTTPS requests on port 443. Change that by editing the /opt/bitnami/apache2/conf/bitnami/bitnami.conf file and modifying the value specified in the Port directive. For example:

Listen 8443

<VirtualHost _default_:8443>

Restart the Apache server for the change to take effect.