| Welcome to WebmasterWorld Guest from 220.127.116.11 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|Have Apache not serve certain file extensions|
Is there a way to have apache not handle...
| 7:50 pm on May 8, 2003 (gmt 0)|
Is there a way to have apache not serve specific file types? For instance I do not want any *.bak files to be served but they have to stay in the web directory.
| 8:34 pm on May 8, 2003 (gmt 0)|
You can do this the same way Apache prevents local config and password files from being served. Add the following to your configuration file:
<Files ~ "^\.bak">
Deny from all
Hope this helps!
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved