Forum Moderators: phranque

Message Too Old, No Replies

Limit filet ypes

         

matt2735

11:22 pm on May 19, 2004 (gmt 0)

10+ Year Member



What is the easiest way to globally limit file types? I want to restrict apache to only serve html and php pages and deny everything else but can't find any examples of this using the "files" or "filesmatch" directive.

Any suggestions would be appreciated.

gergoe

11:45 pm on May 19, 2004 (gmt 0)

10+ Year Member



See [httpd.apache.org...] for the syntax of the FilesMatch directive and the mod_access documentation [httpd.apache.org] for details on how to restrict the access to the files matched by the FilesMatch directive. The FilesMatch is a container just like the Directory or the Location, so the Allow, Deny and the Order directives (provided by mod_access module) should be placed within the open and the closing tag of the FilesMatch.