Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
guides:ubnetdef_webserver_setup [2017/03/20 21:43] sysop created |
guides:ubnetdef_webserver_setup [2017/03/24 07:15] (current) jamesdro Troubleshooting |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== UBNetDef Webserver Setup ====== | ====== UBNetDef Webserver Setup ====== | ||
- | |||
How did I setup the ubnetdef.org webserver? Config dump too, pls. | How did I setup the ubnetdef.org webserver? Config dump too, pls. | ||
+ | |||
+ | ===== Troubleshooting ===== | ||
+ | **ISSUE**: Installing `nginx-full` shows: `nginx-full : Depends: libssl1.0.0 dotdeb` | ||
+ | |||
+ | **FIX**: `apt-get install openssl -t jessie-backports` | ||
+ | |||
+ | ====== Config Dumps ====== | ||
+ | <file conf /etc/logrotate.d/websites> | ||
+ | /web/*/logs/*.log { | ||
+ | daily | ||
+ | missingok | ||
+ | rotate 14 | ||
+ | compress | ||
+ | delaycompress | ||
+ | notifempty | ||
+ | create 0640 www-data adm | ||
+ | sharedscripts | ||
+ | prerotate | ||
+ | if [ -d /etc/logrotate.d/httpd-prerotate ]; then \ | ||
+ | run-parts /etc/logrotate.d/httpd-prerotate; \ | ||
+ | fi \ | ||
+ | endscript | ||
+ | postrotate | ||
+ | invoke-rc.d nginx rotate >/dev/null 2>&1 | ||
+ | endscript | ||
+ | } | ||
+ | </file> | ||
+ | |||
+ | <file conf /etc/crontab> | ||
+ | @daily /usr/bin/certbot renew --post-hook "systemctl reload nginx" --quiet | ||
+ | </file> | ||
+ | |||
+ | <file conf /etc/apt/sources.list.d/dotdeb.list> | ||
+ | # DotDeb General | ||
+ | deb http://packages.dotdeb.org jessie all | ||
+ | deb-src http://packages.dotdeb.org jessie all | ||
+ | |||
+ | # DotDeb HTTP2 | ||
+ | deb http://packages.dotdeb.org jessie-nginx-http2 all | ||
+ | </file> | ||
+ | |||
+ | <file conf /etc/apt/sources.list.d/backports.list> | ||
+ | # Jesse Backports | ||
+ | deb http://ftp.debian.org/debian jessie-backports main | ||
+ | </file> |