在IIS和Windows 7中配置虚拟目录

问题描述:


我尝试制作虚拟目录并在路径中引用它
c:\ inetpub \ wwwroot \ myfolder
一切顺利,而且我还在myfolder内的c:\ inetpub \ wwwroot目录中保存了一个名为index.asp的asp文件.
但是当我输入
http://localhost/virtual_directory_name/myfolder/index.asp
我收到404错误消息,找不到文件.

请帮帮我.

Hi,
I tried making virtual directory and referencing it in the path
c:\inetpub\wwwroot\myfolder
all went well, and also i kept an asp file named index.asp inside myfolder that is placed inside c:\inetpub\wwwroot.
But when i type
http://localhost/virtual_directory_name/myfolder/index.asp
i get a 404 error message, file not found.

Please help me out.

thanx in advence.

进入IIS,右键单击index.asp文件,然后选择浏览".您可能未意识到的路径或端口中可能存在一个额外的目录.

当您从IIS中浏览时,您将确切地看到URL应该是什么.
Go into IIS and right-click the index.asp file and choose Browse. There is likely an extra directory in the path or a port that you are not realizing.

When you browse from within IIS you will see exactly what the URL should be.