Create a custom vhost.conf file and populate it with the appropriate content, for example:

<Location />
    deny from all

Depending on your version of Plesk, this file will be created at the following location:

Plesk <= v11.0 : /var/www/vhosts/

Plesk >= v11.5 : /var/www/vhosts/system/


Then instruct Plesk to activate the custom vhost.conf via the following command:

/usr/local/psa/admin/sbin/httpdmng --reconfigure-domain
  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

Recursively delete old files in Windows

The following command will recursively delete files older than X number of days: forfiles -p...

FileZilla FTP server recommended settings

Edit -> Settings*Note: settings not explictly mentioned can generally be left as defaults...

MySQL scheduled backups on Linux via CRON

The following commands can be added via crontab.  As-is, they will dump all MySQL databases to a...

Import MS SQL T-SQL script

A MS SQL T-SQL script can be imported via the following command-line: sqlcmd -U db_user -P...

Windows 2003 IIS will not start

Problem: IIS is stopped and trying to start it returns an "IIS admin service not started"...