| Welcome to WebmasterWorld Guest from 184.108.40.206 |
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
|Pubcon Platinum Sponsor 2014|
|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