homepage Welcome to WebmasterWorld Guest from 184.73.40.21
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Have Apache not serve certain file extensions
Is there a way to have apache not handle...
EliteWeb

WebmasterWorld Senior Member eliteweb us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 184 posted 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.

 

dmorison

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 184 posted 8:34 pm on May 8, 2003 (gmt 0)

Hi,

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">
Order allow,deny
Deny from all
Satisfy All
</Files>

Hope this helps!

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved