Re: [us...@httpd] restrict virtualhost to certain type of files

2009-05-11 Thread Matus UHLAR - fantomas
>> jeremy co wrote: >>> restrict virtual host to serve only files with the extensions html, jpg, >>> and png. and also generate custom error msg if client request other type >>> of files On 08.05.09 19:52, Nick Kew wrote: > Use to scope a restriction, and ErrorDocument. > Davide Bianchi wrote: >

Re: [us...@httpd] restrict virtualhost to certain type of files

2009-05-08 Thread Nick Kew
Davide Bianchi wrote: jeremy co wrote: restrict virtual host to serve only files with the extensions html, jpg, and png. and also generate custom error msg if client request other type of files Use to scope a restriction, and ErrorDocument. I'd do something like: RewriteCond %{REQUEST_

Re: [us...@httpd] restrict virtualhost to certain type of files

2009-05-08 Thread Davide Bianchi
jeremy co wrote: > restrict virtual host to serve only files with the extensions html, jpg, > and png. and also generate custom error msg if client request other type > of files I'd do something like: RewriteCond %{REQUEST_URI} !.*\.html$ RewriteCond %{REQUEST_URI} !.*\.jpg$ RewriteCond

[us...@httpd] restrict virtualhost to certain type of files

2009-05-08 Thread jeremy co
Hi, does anyone know how to do this scenario : restrict virtual host to serve only files with the extensions html, jpg, and png. and also generate custom error msg if client request other type of files Jeremy