Verify the secure server configuration
It is always best to check your Apache config files for any errors before restarting, because Apache will not start again if your config files have syntax errors.
- Check the Apache config files for errors, run the following command:
sudo apachectl configtest
- Display the secure sites in a browser that supports SNI, and verify no errors are displayed.
- Restart the Apache server to commit the configuration changes.
sudo apachectl stop
sudo apachectl start
- After the server has restarted, run the command
sudo netstat -tnlp | grep 443
and verify that the server is listening on port 443.