Quote:
Originally Posted by catiewong
Thanks
If I have the following two requirement , would advise how to do it .
1) deny file which are .jpg and .png extension .
2) add header to the url which the url is .html
|
Did you made any effort on this by your own? I guess not, so please next time try to do things by yourself and ask for help only when stuck, posting what have you done, the errors you got, etc...
For now try the following, but next time I would like to see some effort from you:
Code:
location ~* ^.+\.(jpg|png) {
deny all;
}
location ~* ^.+\.html {
add_header My-HTML-Header "This is a HTML Header";
}
Regards