指向 IIS 中的虚拟目录

point to virtual directory in IIS

如果我没有使用正确的技术术语,我深表歉意,但我会尽量表达清楚,我希望我的 post 是有道理的。

我在IIS 7.5中添加了一个本地经典ASP网站

网站 企业社会责任 < 网站

物理文件位置:c:\projects\webapps\csr

浏览器中的URL:http://localhost:82/orders.asp?.....

我的问题是:如果我想使用以下 URL 在浏览器中打开网站,我该如何更改配置:http://localhost:82/csr/orders.asp?....

谢谢。

将网站路径更改为 c:\projects\webapps。然后 http://localhost:82 will point to c:\projects\webapps and http://localhost:82/csr 将指向 c:\projects\webapps\csr

如果你想要http://localhost:82 to point to some other folder, that's fine too. Just add a virtual directory to the website, name it "csr" and give it the path c:\projects\webapps\csr, and you'll be able to browse to http://localhost:82/csr.