server { listen 443 ssl; server_name pihole-s.ovalwonder.com; root /var/www/html; index index.php index.html index.htm; ssl_certificate /etc/dehydrated/certs/pihole-s.ovalwonder.com/fullchain.pem; ssl_certificate_key /etc/dehydrated/certs/pihole-s.ovalwonder.com/privkey.pem; ssl_protocols TLSv1.2 TLSv1 TLSv1.1; error_log /var/log/nginx/pihole-s.error; access_log /var/log/nginx/pihole-s.access; location / { try_files $uri $uri/ =404; } autoindex off; index pihole/index.php index.php index.html index.htm; location /*.js { index pihole/index.js; } location /admin { root /var/www/html; index index.php index.html index.htm; } location ~ /\.ht { deny all; } location ~* \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; include fastcgi_params; fastcgi_pass unix:/run/php/php-fpm.sock; fastcgi_index index.php; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_buffer_size 16k; fastcgi_buffers 4 16k; } } upstream pihole-f_proxy { server frodo.natalieandjoshua.com:80; } server { listen 443; server_name pihole-f.ovalwonder.com; location / { proxy_pass http://pihole-f_proxy/; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $http_host; } ssl on; ssl_certificate /etc/dehydrated/certs/pihole-f.ovalwonder.com/fullchain.pem; ssl_certificate_key /etc/dehydrated/certs/pihole-f.ovalwonder.com/privkey.pem; ssl_protocols TLSv1.2; }