The British Caving Association

Any views expressed are not necessarily those of the BCA
It is currently Sat 19 Apr 2014 23:35

All times are UTC [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Sat 28 Feb 2009 12:22 
Offline
User avatar

Joined: Thu 16 Mar 2006 23:45
Posts: 289
If you are moving your web site across to the new BCA server, there is one item you particularly ought to check. The new server has been set up with the default operation that if a directory does not contain an index file (e.g. index.html and variants) then when it is given the URL of the directory it will display a listing of all the files in that directory.

This is sometimes very useful, but it is also a potential security hazard - especially if you have the bad habit of leaving files in a directory that you dont want anyone to see. If you would prefer the server not to allow access to URLs where an explicit file name is not given, then either

1) you need to add the following directive to an appropriately-placed .htaccess file.

Options -Indexes

or 2) you need to put an index.html file in the directory. It neednt contain any text, other than whatever friendly error message you wish to include.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group