Nginx reverse proxy

From Simon's Help System
Revision as of 16:38, 15 May 2025 by Simon (talk | contribs) (Created page with "The reverse proxy is set up as a conf file in /etc/nginx/conf.d/bunnfamily.nz.conf certbot keeps the certificates: Use: <pre> sudo certbot certonly --force-renew -d bunnfamily.nz -d www.bunnfamily.nz -d chrono.bunnfamily.nz -d grafana.bunnfamily.nz -d wiki.bunnfamily.nz -d pumpcompare.aquadvanced.online -d comfyui.bunnfamily.nz -d mine.bunnfamily.nz -d bunnserver.bunnfamily.nz -d hassio.bunnfamily.nz -d node-red.bunnfamily.nz</pre> Mediawiki uses php and this uses a li...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The reverse proxy is set up as a conf file in /etc/nginx/conf.d/bunnfamily.nz.conf

certbot keeps the certificates: Use:

sudo certbot certonly --force-renew -d bunnfamily.nz -d www.bunnfamily.nz -d chrono.bunnfamily.nz -d grafana.bunnfamily.nz -d wiki.bunnfamily.nz -d pumpcompare.aquadvanced.online -d comfyui.bunnfamily.nz -d mine.bunnfamily.nz -d bunnserver.bunnfamily.nz -d hassio.bunnfamily.nz -d node-red.bunnfamily.nz

Mediawiki uses php and this uses a link redirect to /var/run/php-fpm.sock so that I don't have to use the actual version number

/var/run/php/php8.1-fpm.sock

Also note that you need to

cd /var/run/php
sudo chown www-data:www-data *.* 

otherwise you will get errors in /var/log/nginx/error.log about permission errors to access php

Prove PHP is working by going to https://wiki.bunnfamily.nz/phpinfo.php