IIS 6.0 에서 ASP include file 에러가 날때

Server : IIS 6.0(windows 2003 server)
Script Language : ASP 3.0

<!--#include file="../blah.asp"-->
이런식으로 파일을 inculde 할때

Active Server Pages, ASP 0131
Disallowed Parent Path
The Include file '../<filename .ext>' cannot contain '..' to indicate the parent directory.
/<path>/<filename .ext>, line <number>
</number></filename></path></filename>

와 같은 에러가 난다면..

<!--#include virtual="/virtualpath/blah.asp"--> 로 바꾸거나

IIS 에서 Parent Path enable을 해줄 것.
IIS->Home Directory->App Option -> Enable Parent Paths checkbox 체크

자세한 내용은 여기에서

Tags:

Leave a Comment