Modify the Apache port (2024)

Table of Contents
HTTP port HTTPS port

HTTP port

Under the default configuration, Apache will listen for HTTP requests on port 80. To change the port number, follow the steps below:

HTTPS port

Apache listens for HTTPS requests on port 443. To change the port number, follow the steps below:

  • Edit the /opt/bitnami/apache/conf/bitnami/bitnami-ssl.conf file and modify the value specified in the VirtualHost directive. For example:

     <VirtualHost _default_:8443>
  • Edit all SSL virtual host files inside the /opt/bitnami/apache/conf/vhosts/ directory and modify the value specified in the VirtualHost directive. For example:

    NOTE: Only edit virtual host files containing the SSLEngine on directive.

     <VirtualHost 127.0.0.1:8443 _default_:8443>
  • Restart the Apache server for changes to take effect:

     $ sudo /opt/bitnami/ctlscript.sh restart apache
Modify the Apache port (2024)
Top Articles
Latest Posts
Article information

Author: Nathanial Hackett

Last Updated:

Views: 5900

Rating: 4.1 / 5 (72 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Nathanial Hackett

Birthday: 1997-10-09

Address: Apt. 935 264 Abshire Canyon, South Nerissachester, NM 01800

Phone: +9752624861224

Job: Forward Technology Assistant

Hobby: Listening to music, Shopping, Vacation, Baton twirling, Flower arranging, Blacksmithing, Do it yourself

Introduction: My name is Nathanial Hackett, I am a lovely, curious, smiling, lively, thoughtful, courageous, lively person who loves writing and wants to share my knowledge and understanding with you.