Solved

Plesk Panel, apache Centos .htaccess i guess? Security

Posted on 2010-09-08
4
622 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

​Being a Managed Services Provider (MSP) has presented you  with challenges in the past— and by meeting those challenges you’ve reaped the rewards of success.  In 2014, challenges and rewards remain; but as the Internet and business environment evol…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
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.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

791 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