I am running Ubuntu 11.04 desktop with encrypted home directories. I do development work on my computer and I want to have my webroot directory to be within my home directory so it is encrypted with the rest of my home directory. As I am the only use of the machine, I want to configure Apache to point to this directly.
Current I have changed the /var/www
folder into a symbolic link to the workspace in my hone dir: /home/valorin/workspace
However, this throws 403 Forbidden errors in apache.
I have added my user into the www-data
group, and set the ownership & permissions on the workspace folder:
drwxrwxr-x 2 valorin www-data 4096 2011-04-23 10:02 workspace
But the only way I can get it to work is to change my home dir group to be www-data and set permissions too. I don't really want to do this as it means Apache has access to my home dir and could possibly be used by someone on my network to get into my personal data.
Does anyone know how I can solve this problem?
Best Answer
This was answered over on AskUbuntu for me, but I will post here for the benefit of non-Ubuntu folks: