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.

  1. Check the Apache config files for errors, run the following command:

sudo apachectl configtest

  1. Display the secure sites in a browser that supports SNI, and verify no errors are displayed.
  2. Restart the Apache server to commit the configuration changes.

sudo apachectl stop

sudo apachectl start

  1. After the server has restarted, run the command sudo netstat -tnlp | grep 443 and verify that the server is listening on port 443.