How to Fix "Apache not istening on Port 443"?
Last Updated :
23 Jul, 2025
For Windows servers, Apache is an open-source web server that may be downloaded for free. Although installing an Apache web server on Windows is a straightforward process, the steps you follow may vary depending on the version of Windows you are using.
Apache may not be listening on port 443 for several reasons like these
1. Incorrect setting of Apache:
- Incorrect entries in the Apache configuration file are frequently the cause of problems with port 443. As an illustration, certain clients might include the 'Listen' directive in the specific SSL including files located at /Apache24/conf/extra/httpd-ssl.conf. However, you can overlook turning on the Include line in the main /Apache24/httpd.conf file. As a result, the port 443 connection can fail.
- Similarly, issues with secure websites can also arise from repeated Listen statements, sites referring to incorrect IP addresses, etc. Once more, even though the Apache configuration entries might be accurate, the server won't support SSL modules. This once more prevents SSL from operating.
2. The port is currently in use:
- Another cause for the failure of port 443 could be that another service is running on that port.
- In these situations, Apache is unable to establish a secure SSL connection because port 443 is already in use.
- Firewalls are another typical cause of Apache not listening on port 443.
- This can be the internal firewall of the server. Apache would listen on port 443 only when there are particular rules to accept connections.
This troubleshooting guide will assist you in resolving this issue
Step 1: Launch the configuration file for Apache
- The default location of the Apache 2.4 configuration file is C:\Program Files\Apache24\conf\httpd.conf.
- Using a text editor such as Notepad or Visual Studio Code, open the configuration file.
Step 2: Verify that the directive 'Listen 443' is present and uncommented
- Check the configuration file for the line Listen 443.
- To uncomment a line that has been commented out (that is, if it begins with the # symbol), remove the # symbol.
- Add the line to the configuration file if it doesn't already exist.
- After making your edits, exit the text editor.
Step 3: Look into further services using port 443 for listening:
- Launch the command prompt in administrator mode.
- To see if there are any other services listening on port 443, issue the following command:
netstat -ano | findstr :443
- It might be necessary to cease any other services that are listening on port 443 or modify their port configuration.
Services Listening on different portsStep 4: Set up the SSL configuration:
- Ensure that the files containing your SSL certificates, such as server.crt and server.key, are stored in a secure area.
- Open the C:\Program Files\Apache24\conf\extra\httpd-ssl.conf file that contains the Apache SSL settings.
- Include the paths to the SSL certificate files when configuring the SSL settings in the configuration file.
Step5: Turn the SSL module on:
- Launch the command prompt in administrator mode.
- To make the SSL module active, execute the following command:
ssl_module | findstr -t -D DUMP_MODULES
- Add the following line to the Apache configuration file to load the SSL module if it isn't already loaded:
LoadModule modules/mod_ssl.so ssl_module modules
- After making your edits, exit the text editor.
Step 6: Adjust the firewall configuration
- Open the Advanced Security interface to launch the Windows Defender Firewall.
- Make a new TCP/UDP incoming rule for port 443.
- Open port 443 to incoming connections.
Step 7: Examine your SELinux policies, if any:
- The setenforce command can be used to verify the SELinux policies if you are running SELinux on a Windows machine.
- On Windows computers, SELinux is not enabled by default.
Step 8: Examine the error logs from Apache:-
- Usually found at C:\Program Files\Apache24\logs\error.log, open the Apache error logs.
- Check for any port 443 or SSL/TLS-related issues.
Step 9: Launch the Apache service:-
- Launch the command prompt in administrator mode.
- The Apache service can be started by running the following command:
net start apache
Step 10: Check to see if Apache is open on port 443:
- Get a command prompt open.
- To find out if Apache is listening on port 443, issue the following command:
netstat -ano | findstr :443
- If port 443 is open on Apache, a line similar to this one should appear:
TCP 0.0.0.0:443 0.0.0.0:0 A LISTENING 1234
The Apache service's process ID is 1234 in the output.
You should be able to resolve the "Apache not listening on port 443" issue and allow Apache to listen on port 443 for HTTPS connections by following these instructions and debugging any possible problems.
Similar Reads
How to Enable HTTP/2 protocol support in Apache? HTTP/2 is a significant update to the HTTP protocol. It was created to outperform HTTP 1.1 in terms of performance and latency. The applications operate way faster and more efficiently if we enable HTTP/2 on our Apache server. PrerequisitesApache Version: 2.4.17 or later.OpenSSL Version: Ensure Open
2 min read
How to Change Apache HTTP Port in Linux? The Apache HTTP server is one of the internet's most popular web servers today, thanks to its versatility, consistency, and a plethora of features, some of which are actually not available on other web servers, such as Nginx's competitor. Some of Apache's most significant features include the abilit
2 min read
How to Listen on Port 80 with Node.js ? Listening on port 80, the default HTTP port, is a common requirement for web servers because it allows users to access the service without specifying the port number in the URL. However, configuring Node.js to listen on port 80 involves some considerations, especially regarding permissions and secur
3 min read
How to Install and Configure Apache on openSUSE or SLES? The most popular web server is Apache, also known as the Apache HTTP server. This post will walk you through installing and configuring Apache on SLES or openSUSE.PrerequisitesA running instance of openSUSE or SLES.A user with sudo privileges.Steps to install and configure Apache on openSUSE or SLES
3 min read
How to Install an SSL Certificate on Apache? The Apache HTTP Server module mod_ssl provides an interface to the OpenSSL library, which provides Strong Encryption using the Secure Sockets Layer and Transport Layer Security protocols.What is Secure Sockets Layer (SSL)?The Secure Sockets Layer protocol is a protocol layer which may be placed betw
3 min read
How to Hide Apache Server Signatures? When you visit a website, the server sends back information about itself, including a signature that can be exploited by attackers. To enhance website security, you can hide this signature. For Apache servers, adjust the "ServerSignature" and "ServerTokens" settings in the configuration file to disa
4 min read