Plesk Panel, apache Centos .htaccess i guess? Security

Hi there, at the moment when I add a new domain to my plesk panel it recreates the initial files and folders using the 'default' folder in the vhosts directory. If I want to add a .htaccess and robots.txt that adds themselves according to the new site name where would this be done? for example I want to add this to each new site to improve security (any other security suggestions feel free to let me know)

RewriteEngine On
RewriteCond %{HTTP_HOST} ^<domain>
RewriteRule (.*) <domain>/$1 [R=301,L]
RewriteCond %{HTTP_USER_AGENT} libwww [NC,OR]
RewriteCond %{QUERY_STRING} ^(.*)=http [NC]
RewriteRule ^(.*)$ – [F,L]


Any suggestions much appreciated,

Thanks,

Bill
LVL 1
GamesNET2Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
GamesNET2Connect With a Mentor Author Commented:
It's ok the new plesk 10.0.1 lets me do it! In Default site files in the control panel
0
 
WizRd-LinuxCommented:
The quickest and easiest way so as to not change anything you currently have is to create a new site, add the files you need and then tar, zip or rar the httpdocs, cgi-bin, anon_ftp and error_docs directories.

In the plesk control panel goto the skeleton icon on the home page and upload your new skeleton config.  If you break it or the files are not right you can click on the "Default" button.
0
 
GamesNET2Connect With a Mentor Author Commented:
I can't find the skeleton icon? I'm using plesk 9.5 - I cant find any default domain files or anything like that.. I need them to be created so it automatically inputs the domain name of the newly created domain for me
0
 
GamesNET2Author Commented:
I found it out
0
All Courses

From novice to tech pro — start learning today.