setup-config-debian-bullseye
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
setup-config-debian-bullseye [2022/07/21 18:47] – admin | setup-config-debian-bullseye [2022/07/24 15:18] (current) – admin | ||
---|---|---|---|
Line 47: | Line 47: | ||
#or symlink into / | #or symlink into / | ||
</ | </ | ||
+ | |||
+ | === Apache authentication htpasswd === | ||
+ | Within a vhost, add: | ||
+ | < | ||
+ | < | ||
+ | Order Allow,Deny | ||
+ | Allow from all | ||
+ | AuthName " | ||
+ | AuthType Basic | ||
+ | AuthUserFile / | ||
+ | require valid-user | ||
+ | Allow from 127.0.0.1 | ||
+ | </ | ||
+ | </ | ||
+ | To create a htpasswd file: | ||
+ | < | ||
+ | htpasswd -c / | ||
+ | </ | ||
+ | |||
+ | === Apache HTTPS Secure ssl === | ||
+ | Self Signed Cert | ||
+ | < | ||
+ | make-ssl-cert generate-default-snakeoil | ||
+ | |||
+ | < | ||
+ | |||
+ | ServerAdmin webmaster@localhost | ||
+ | DocumentRoot / | ||
+ | |||
+ | ErrorLog ${APACHE_LOG_DIR}/ | ||
+ | CustomLog ${APACHE_LOG_DIR}/ | ||
+ | |||
+ | SSLEngine on | ||
+ | SSLCertificateFile | ||
+ | SSLCertificateKeyFile / | ||
+ | < | ||
+ | SSLOptions +StdEnvVars | ||
+ | </ | ||
+ | < | ||
+ | SSLOptions +StdEnvVars | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | Ref: / | ||
===== MySQL migrations ===== | ===== MySQL migrations ===== | ||
Line 67: | Line 111: | ||
apt-get install fail2ban | apt-get install fail2ban | ||
apt-get install links | apt-get install links | ||
+ | </ | ||
+ | ==== chkrootkit ==== | ||
+ | < | ||
+ | apt-get install chkrootkit | ||
+ | vi / | ||
+ | #change to: | ||
+ | RUN_DAILY=" | ||
+ | RUN_DAILY_OPTS=" | ||
+ | DIFF_MODE=" | ||
+ | |||
+ | vi / | ||
+ | #add | ||
+ | root: | ||
+ | |||
+ | #then run the following to take effect: | ||
+ | newaliases | ||
+ | |||
+ | Now the user will get nightly emails with chkrootkit report. | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
</ | </ | ||
Line 273: | Line 339: | ||
Restart postfix etc. | Restart postfix etc. | ||
+ | |||
+ | Note: Thunderbird does NOT like self-signed certs [[courier_imaps_server_-_maildir# | ||
+ | You can get it working, but it'll take time. If you get errors, most likely its thunderbird, | ||
+ | |||
</ | </ | ||
setup-config-debian-bullseye.1658429243.txt.gz · Last modified: 2022/07/21 18:47 by admin