I have a configured Apache (not by me) and a site to restore after its domain expired (under an old Ubuntu with an old version of Apache). I have root permissions on the machine.
Actually, this is the structure:
In /var/www I have several directories containing several sites and a default site in /var/www/default (containing a blank index.html, showed when visiting http://my.machine.ip/). These sites have their own configuration in sites-available/enabled, linking each site to its domain. One domain is expired, but the corresponding site must be still up. So, i though about making it available on http://my.machine.ip/name_of_site
Now, given that i have to find the simpler solution, keeping alive all the other sites, I created a symbolic link in /var/www/default to /var/www/name_of_site, but visiting http://my.machine.ip/name_of_site result in a fantastic "403 You don't have permission to access /name_of_site/ on this server."
Now, the directory /var/www/default (and its index.html file) are owned by root.
The directory /var/www/name_of_site of the site (and its files) are owned by a specific user, let's say name_of_site_user. It replies correctly when visiting its domanin (still alive for some days)
Changing ownership of the symbolic link (to root, to www-data, to name_of_site_user) seems not to change situation. How do I have to configure Apache to avoid the permission issue?
- - , .
برچسب:
نویسنده: استخدام کار