======================
How to host more than two web applications in the same website on IIS Express 7.5?
假設要開兩個網頁應用程式分別在C:\web1、C:\web2中,在applicationhost.config中定義如下:
<site name="Test" id="2" serverAutoStart="true">
<application path="/">
<virtualDirectory path="/" physicalPath="C:\tempweb" />
</application>
<application path="/a">
<virtualDirectory path="/" physicalPath="C:\web1" />
</application>
<application path="/b">
<virtualDirectory path="/" physicalPath=" C:\web2" />
</application>
<bindings>
<binding protocol="http" bindingInformation=":80:192.168.2.100" />
</bindings>
</site>
然後就可以使用 http://192.168.2.100/a , http://192.168.2.100/b 來訪問網頁了。
沒有留言:
張貼留言