Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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\public"

The symlink was created just fine, and if I issue the cd truthuniversal command, while in the IIS root dir, I do indeed end up in the "U:\Truth Universal Full Site\public" directory area.

My problem is that when I type:

http://localhost/truthuniversal 

in my browser's address bar IIS does not serve the index page which resides in the public directory. Instead, I get the following error:

Server Error in Application "DEFAULT WEB SITE"

Internet Information Services 7.5 Error Summary HTTP Error 404.0 - Not Found The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

Please advise.

-TU

like image 592
T. Ujasiri Avatar asked Dec 08 '22 19:12

T. Ujasiri


1 Answers

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.

like image 153
Jonathan Henson Avatar answered Feb 20 '23 01:02

Jonathan Henson