Add a custom http header to subdirectories

1

Here is the code I am using

cscript adsutil.vbs set w3svc/1/ROOT/Test/css/HttpCustomHeaders "Cache-Control: max-age=36000"

When I use it an error appears The path requested could not be found. ErrNumber: -2147024893 (0x80070003) Error Trying To Get the Object: w3svc/1/ROOT/Test/css w3svc/1/ROOT/Test is the virtual directory

I want to apply my script to subdirectory CSS The question I have is it possible to apply to a subdirectory.

iis-6
http-headers
asked on Stack Overflow Oct 28, 2009 by Gerard Flynn • edited Apr 28, 2020 by fatihyildizhan

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0