ApacheWebServer

Apache on-line documentation:

How to strip comments from httpd.conf

1
$ cat httpd.conf | grep -v '^$\|^#' >> httpd-nocomments.conf

How to enable SSL

  • Good Youtube video explanation: https://www.youtube.com/watch?v=YR6-6XUC3sY&t=1672s#t=1126.767257
  • Install mod_ssl.so module
  • Your SSL configuration(/*/conf.d/ssl.conf) will need to contain, at minimum, the following directives.
    1
    2
    3
    4
    5
    6
    7
    8
    9
    LoadModule ssl_module modules/mod_ssl.so
    Listen 443
    <VirtualHost *:443>
    ServerName www.example.com
    SSLEngine on
    SSLCertificateFile "/path/to/www.example.com.cert"
    SSLCertificateKeyFile "/path/to/www.example.com.key"
    </VirtualHost>