I am running Apache 2.4.41 on Linux Mint 20. My document root is home/www/. I have a laptop also connected using Samba. I would like to add a shared folder also (from the laptop) to the Document Root settings.
How do I do it without removing home/www/?
C:\LinuxShare./mnt/LinuxShare.When that works...
ps -ef | grep httpd, it will show you the user. Or look in httpd.conf, directiveUser./mnt/LinuxShareso that the user identified in 3) can read files under that directory. You could use a group, or others permissions (for home it's ok, for corporate network, do not use others!).When you have validated that the Apache user can read files under
/mnt/LinuxShareVirtualHost, addAlias /wwwpc /mnt/LinuxShare<Directory /mnt/LinuxShare>section to allow reading that directory.Restart Apache
C:\LinuxShare. Make sure you can see it on mint under/mnt/LinuxShare.http://localhost/wwwpc/SOMEPAGE.html. You should see the page.http://THE_IP_OF_THE_MINT/wwwpc/SOMEPAGE.html. Remember that Apache runs on mint, so on the laptop you cannot access it via localhost.