Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Plesk Panel, apache Centos .htaccess i guess? Security

Posted on 2010-09-08
4
Medium Priority
?
637 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

Optimum High-Definition Video Viewing and Control

The ATEN VM0404HA 4x4 4K HDMI Matrix Switch supports 4K resolutions of UHD (3840 x 2160) and DCI (4096 x 2160) with refresh rates of 30 Hz (4:4:4) and 60 Hz (4:2:0). It is ideal for applications where the routing of 4K digital signals is required.

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…
​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…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

721 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