I have set up virtual hosts in apache2 with the site root located at /srv/www/domain.com/public_html as described in
http://library.linode.com/lamp-guides/ubuntu-10.04-lucid/
I have set up a new user with a home directory of /home/username
I have then setup an sftp jail as described here
http://library.linode.com/networking/security-guides/linux-sftp-jail
I then created a symlink via
Code:
cd /home/username
Code:
ln -s /srv/www/domain.com/public_html
When ssh'd in to the server I can
Code:
cd /home/username/public_html
and I can see the files.
If I then try to sftp in to the user I can see an alias to public_html but when I double click on the alias I get the following error "Could not resolve symlink “public_html”."
Any ideas?