Forum Moderators: phranque
My question is how to configure the httpd.conf to allow ONLY files with the extensions .html, .php, .jpg to be serverd.(means other file extensions should not be served)
I've tried to use filemsatch as the following, but it seems not working. Could someone give me a hint or help to figure it out.
<FilesMatch "\.(gif¦jpe?g¦png¦php¦html)$">
Order allow, deny
Allow from all
</FileMatch>
ALL help is greatly appreciated.
Welcome to WebmasterWorld [webmasterworld.com]!
I've successfully used something like this in the past:
SetEnvIf Request_URI "\.(gif¦jpe?g¦png¦php¦html)$" allowit
<Files *>
Order Allow,Deny
Allow from allowit
</Files>
Jim