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: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.
Criticising any questions is banned on this forum.
Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.