Apologies if I posted this in the wrong forum originally.
Hello,
I have a client who wishes to run one account on plesk purely for FTP (as network drives on Windows). The plesk web user interface is ideal for them as it makes it very easy to create ftp accounts in this way (without my involvement).
However, I need to block all http traffic to this domain and web users directories. I can't password protect them all because they will be created without my involvement. I have therefore tried to add the following to vhost.conf in the domain's conf directory:
<VirtualHost *IP address here*:80>
<Directory /var/www/vhosts/*my domain here*/httpdocs/>
Options None
AllowOverride None
Order deny,allow
Deny from all
</Directory>
</VirtualHost>
I reboot Apache and it makes no difference - whether I specify a web user's folder, the main httpdocs folder, with or without the Virtualhost tags.
I am assuming this is the way to achieve this result but I am open to suggestions. Hopefully someone can advise.
Thanks,
R.
Hello,
I have a client who wishes to run one account on plesk purely for FTP (as network drives on Windows). The plesk web user interface is ideal for them as it makes it very easy to create ftp accounts in this way (without my involvement).
However, I need to block all http traffic to this domain and web users directories. I can't password protect them all because they will be created without my involvement. I have therefore tried to add the following to vhost.conf in the domain's conf directory:
<VirtualHost *IP address here*:80>
<Directory /var/www/vhosts/*my domain here*/httpdocs/>
Options None
AllowOverride None
Order deny,allow
Deny from all
</Directory>
</VirtualHost>
I reboot Apache and it makes no difference - whether I specify a web user's folder, the main httpdocs folder, with or without the Virtualhost tags.
I am assuming this is the way to achieve this result but I am open to suggestions. Hopefully someone can advise.
Thanks,
R.