嘿,我有一个PHP的Windows Azure项目,但我是新来的IIS。我有我的PHP库在根文件夹和客户端文件,如index.php,样式表或JavaScript文件夹中称为document_root。子文件夹中的IIS文档根
如何设置IIS 7(可能使用Web.config)以将document_root用作站点的默认文件夹(使根不可见),以便我可以调用mydomain.tld /而不是mydomain.tld/document_root/
我用:
<defaultDocument>
<files>
<clear />
<add value="document_root/index.php" />
</files>
</defaultDocument>
的正常工作,但它只能访问的index.php和无法找到像/document_root/css/default.css任何文件(相对地址为CSS /默认。 css)