How to change Apache directory

I want to place and store all my website’s files on the additional volume (/mnt/Plus10).

I’ve changed the path in the 000-default.conf, reloaded the apache, but this was not successful. How to do this in a correct way? (Ubuntu 20.04).

Thank you!

Isn’t easier mount the volume on /home ?


Thank you. Could you please help me to understand how to do this in the correct way?
Should I give special permissions to the /mnt/Plus10?

P.S. And yes, I’ve found that my websites stored in /home/user/ but not in /var/www as it was noticed in Apache settings. So my changes to the Apache’s configs just ignored by the server.

You need to move the home directory just Google how to

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.