Table of Contents

UBNetDef Webserver Setup

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

/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
}
/etc/crontab
@daily /usr/bin/certbot renew --post-hook "systemctl reload nginx" --quiet
/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
/etc/apt/sources.list.d/backports.list
# Jesse Backports
deb http://ftp.debian.org/debian jessie-backports main