How do I create a web user inside httpdocs?

J

Javier Alonso

Guest
Hello, I need some help with plesk. When I create a web user, its default directory is outside httpdocs, and I need a ftp account inside httpdocs, so users can upload files using that ftp account and everybody can download them by http.

I have tried modifying the user with "usermod -d ...../httpdocs/myfolder" but it doesn't work.

Any help, please?
 
I think it is not possible,
but you can make a symlink from webuser dir into httpd folder.
You need to add some rules in vhost.conf
for example:
<Directory "/var/www/vhosts/domain.de/httpdocs">
Options +followSymlinks
</Directory>

If you need Access with php you need some additional Lines
<Directory "/var/www/vhosts/domain.de/httpdocs">
php_admin_value open_basedir "/var/www/vhosts/domain.de/web_users/webusername/"
</Directory>

create symlink:
ln -s ../web_users/webusername/ /var/www/vhosts/domain.de/httpdocs/downloads
It will create a symlink in httpdocs folder named as downloads
 
Back
Top