I installed Apache 2.4.6 on Ubuntu 13.10 and put some html files in /var/www/
, the default base folder. I then needed to share those html files to a synced Dropbox folder, so I moved the www
folder into my Dropbox folder and replaced it with a symlink of the same name. Note that the www folder in Dropbox has read permission. Now, when I refresh my website, Chrome reads
You don't have permission to access / on this server
Why won't moving the www
folder to my synced Dropbox folder work (after replacing the original folder with a symlink)? I didn't think that Apache would notice the difference between the link to the www folder and the actual www
folder. And how do I make Apache follow the www symlink and display properly? Is it a Dropbox issue or an Apache issue?
Also, my /etc/apache2/apache2.conf
file originally said:
<Directory />
Option FollowSymLinks
AllowOverride None
Require all denied
</Directory>
And changing it to...
<Directory />
Option +FollowSymLinks
AllowOverride None
Require all denied
</Directory>
(Adding a plus) didn't make any difference.
Oh, and apache2 -k restart throws me:
"Config variable ${APACHE_LOG_DIR} is not defined"
and:
"Invalid Mutex directory in argument file:${APACHE_LOCK_DIR}"
Restarting and stop/start didn't work. Also, changing the permissions to Other:read_only for the folder and subfolder made no difference (although the Dropbox folder originally did not grant such permission)
Any other ideas?