Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create virtual directory at http://localhost/

Hi I would like to create a virtual directory at http://localhost

Its just a standard IIS 7.5 installation, meaning that http://localhost/ just shows the iis logo. But how do I remove that page and make it possible to use it for at virtual directory.

Right now Im getting this message in Visual Studio, when Im trying to create the virtual directory.

"Unable to create the virtual directory. The URL 'http://localhost/' is already mapped to a different folder location."

I can create a virtual directory at ex. http://localhost/web But I need it to be a http://localhost/

like image 290
gulbaek Avatar asked Feb 07 '11 11:02

gulbaek


2 Answers

What you want is not a virtual directory. Just change the physical path of your Default Web Site to where you want it, or publish into that folder. By default the physical path is c:\inetpub\wwwroot\.

Default Web Site -> Manage Web Sites -> Advanced Settings -> Physical Path
like image 106
Martin Buberl Avatar answered Sep 17 '22 05:09

Martin Buberl


Right click the folder that you want to make as the virtual directory. Under Properties->Web Sharing select the Default website.

Also click the option Share this folder. In Aliases give the name of the folder. Now click OK.

like image 24
sindhu Avatar answered Sep 18 '22 05:09

sindhu