User Tools

Site Tools


setup-config-debian-bullseye

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
setup-config-debian-bullseye [2022/07/23 10:17] adminsetup-config-debian-bullseye [2022/07/24 16:18] (current) admin
Line 65: Line 65:
 htpasswd -c /etc/apache2/htpasswd username htpasswd -c /etc/apache2/htpasswd username
 </code> </code>
 +
 +=== Apache HTTPS Secure ssl ===
 +Self Signed Cert
 +<code>
 +make-ssl-cert generate-default-snakeoil
 +
 +<VirtualHost *:443>
 +
 +        ServerAdmin webmaster@localhost
 +        DocumentRoot /var/www/html
 +
 +        ErrorLog ${APACHE_LOG_DIR}/error.log
 +        CustomLog ${APACHE_LOG_DIR}/access.log combined
 +
 + SSLEngine on
 +                SSLCertificateFile      /etc/ssl/certs/ssl-cert-snakeoil.pem
 +                SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
 +                <FilesMatch "\.(cgi|shtml|phtml|php)$">
 +                                SSLOptions +StdEnvVars
 +                </FilesMatch>
 +                <Directory /usr/lib/cgi-bin>
 +                                SSLOptions +StdEnvVars
 +                </Directory>
 +</VirtualHost>
 +</code>
 +Ref: /etc/apache2/sites-available/default-ssl.conf
  
 ===== MySQL migrations ===== ===== MySQL migrations =====
Line 94: Line 120:
 RUN_DAILY_OPTS="-q" RUN_DAILY_OPTS="-q"
 DIFF_MODE="true" DIFF_MODE="true"
 +
 +vi /etc/aliases
 +#add
 +root:           localuser
 +
 +#then run the following to take effect:
 +newaliases
 +
 +Now the user will get nightly emails with chkrootkit report.
 +
 </code> </code>
  
setup-config-debian-bullseye.1658567825.txt.gz · Last modified: 2022/07/23 10:17 by admin