# IIS 和 IIS Express 設定虛擬目錄 ###### tags: `程式設計` IIS的站台設定放在不同地方 ## windows內建的IIS 設定檔放在 ``` %windir%\System32\inetsrv\config\applicationHost.config ``` ## IIS Express的 設定檔放在 ``` %USERPROFILE%\Documents\IISExpress\config\applicationhost.config ``` ## Visual Studio 2015開始專案的虛擬目錄放在 ``` [solution_directory]/.vs/config/applicationHost.config ``` 在 applicationHost.config 找到這一段 virtualDirectory ,可以設定虛擬目錄 ``` <site name="WebSiteWithVirtualDirectory" id="20"> <application path="/" applicationPool="Clr4IntegratedAppPool"> <virtualDirectory path="/" physicalPath="c:\temp\website1" /> <virtualDirectory path="/OffSiteStuff" physicalPath="d:\temp\SubFolderApp" /> </application> <bindings> <binding protocol="http" bindingInformation="*:1132:localhost" /> </bindings> </site> ``` https://stackoverflow.com/questions/8735713/creating-virtual-directories-in-iis-express https://stackoverflow.com/questions/28701647/applicationhost-config-file-path-in-iis-7-7-5-8-8-5-and-iis-10
×
Sign in
Email
Password
Forgot password
or
Sign in via Google
Sign in via Facebook
Sign in via X(Twitter)
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
Continue with a different method
New to HackMD?
Sign up
By signing in, you agree to our
terms of service
.