Home > front end >  Ubuntu apache2 web directory on the hard disk data after unable to gain access
Ubuntu apache2 web directory on the hard disk data after unable to gain access

Time:03-03

Ubuntu 20.4, Apache2.4.41

two computer hard disk, flash disk as a system, mount /,/home directory, mechanical plate as an independent data set, formatting a NTFS, mounted in the /media/user/ directory, apache2 web directory by default in the /var/WWW , the configuration files in the /etc/apache2/

first of all, by modifying the sites - the available the configuration file, remove the site directory to /home ,
page report 403 mistake, You don 't have permission to access this resource.


check, found to be apache2 default limits the access of users, the default cannot access /var/WWW folder of the other content, by modifying the apache2. Conf Directory configuration, add the /home directory of the web site directory, can be visited, and try the other position, all can normal visit

website's catalogue of above is different in SSD position switch test, there is no problem

because the web involves multiple video access, so ready to move web directory to mechanical hard disk , also changed the apache2 web directory, and add a Directory path, but don't have access to all the time, has been submitted to the errors, You don 't have permission to access this resource.

to look a lot of information, no problem, I guess the Ubuntu and Apache2 installation position and the cause of the web directory is not in the same hard disk , don't know how to configure, ask you, who have such experience, also forget to grant instruction,

how to configure the Apache2 web directory under the installation disk?
  • Related