IIS virtual directory from web.config

孤者浪人 提交于 2019-12-10 20:28:23

问题


I have a IIS problem that I think this blog gives me a fix for:

To resolve it, Right Click on the virtual directory - select properties and then click on "Create" next to the "Application" Label and the textbox. It will automatically create the "application" using the virtual directory's name. Now the application can be accessed.

However I don't have access to the IIS GUI. Is there a way to do the same thing by editing the web.config file?


回答1:


I'm afraid this isn't possible. Configuring a directory as an application, setting up the AppPool, etc is the responsibility of the web server. Typically your web hosting provider will offer a control panel that lets you configure the virtual directories. If not, you'll need to contact them through their support channels to have this done.




回答2:


You can not create a virtual directory via your web.config. If this is on a web host then you will need to use whatever user interface they give you to create Virtual Directories.




回答3:


or on some hosted sites that you're allowed access to, you need to put in a ticket to the service center or help desk to get them make it an app. They will need to know which version of the .net framework you want it to be also.




回答4:


The ImageResizer project has a way to create a virtual folder using its own mechanism. It isn't recommended for production, but it may suit some needs.

Add

<add name="VirtualFolder" virtualPath="~/" physicalPath="..\Images" vpp="false "/> 

to the <plugins /> section.

http://imageresizing.net/docs/v4/plugins/virtualfolder



来源:https://stackoverflow.com/questions/748772/iis-virtual-directory-from-web-config

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!