fbe wrote: ↑
Thu Dec 20, 2018 9:37 pm
You may change the DocumentRoot in /etc/apache2/sites-available/000-default.conf or .../default-ssl.conf but you should look into /etc/apache2/apache2.conf too. There is some commented out sample configuration to allow access to /srv/ .
You could easily mount your USB drive to /var/www/html instead or create a symbolic link /var/www/html that points to the mountpoint of your USB drive.
My Apache root is at /srv/www/html/... and that's an NFS drive (so all 18 Raspberries can share some HTML/CSS/JS code). It's relatively easy to go through files with awk/sed/vi to s/var/srv/g and change everything.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.
Any DMs sent on Twitter will be answered next month.
This is a doctor free zone.