Solved

Plesk Panel, apache Centos .htaccess i guess? Security

Posted on 2010-09-08
4
620 Views
Last Modified: 2012-05-10
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
0
Comment
Question by:GamesNET2
  • 3
4 Comments
 
LVL 13

Expert Comment

by:WizRd-Linux
ID: 33668341
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
 
LVL 1

Assisted Solution

by:GamesNET2
GamesNET2 earned 0 total points
ID: 33690065
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
 
LVL 1

Accepted Solution

by:
GamesNET2 earned 0 total points
ID: 35184942
It's ok the new plesk 10.0.1 lets me do it! In Default site files in the control panel
0
 
LVL 1

Author Closing Comment

by:GamesNET2
ID: 35221291
I found it out
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
Fine Tune your automatic Updates for Ubuntu / Debian
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question