Solved

Plesk Panel, apache Centos .htaccess i guess? Security

Posted on 2010-09-08
4
624 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Create the perfect environment for any meeting

You might have a modern environment with all sorts of high-tech equipment, but what makes it worthwhile is how you seamlessly bring together the presentation with audio, video and lighting. The ATEN Control System provides integrated control and system automation.

Question has a verified solution.

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

Suggested Solutions

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
​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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

756 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