Symlink created with mklink not working with IIS7.5 — Windows 7

前端 未结 2 789
滥情空心
滥情空心 2020-12-19 18:30

So while in my IIS root directory (c:\\inetpub\\wwwroot) I\'ve created a symlink to a network drive using:

mdlink /D truthuniversal \"U:\\Truth Universal Full Site\\

相关标签:
2条回答
  • 2020-12-19 18:34

    I agree that virtual directory in IIS may be what you want, but if you want to minimize IIS maintenance, consider this:

    Instead of directory symbolic link: mklink /D
    try directory junction: mklink /J

    This worked for me and the web apps are able to write to the same directory.

    mklink /J App_Data d:\shared\App_Data
    

    worked for me on Windows Server 2008 R2.

    0 讨论(0)
  • 2020-12-19 18:36

    You need to create a virtual directory mapping to that directory in IIS in order for it to serve up the page. In IIS, right click on "Default Website", then click "Add Virtual Directory". Also, doing this, there is no reason why you even need the symlink. Just map it to the target to begin with.

    0 讨论(0)
提交回复
热议问题