2013-05-17 25 views
2

我想要做一些事情像下面如何部署PHP應用程序在IIS

enter image description here

在下面的文件夾結構的應用程序文件夾中包含我的應用程序的來源,是在PHP和PHP代碼中使用某些文件從系統文件夾。應用程序文件夾位於wwwroot一側。

enter image description here

和我的wwwroot下面包含file.in這個文件夾我有一個Web.config文件含有如下網址寫:

configuration> 
    <system.webServer> 
    <rewrite> 
     <rules> 
      <rule name="Imported Rule Test" stopProcessing="true"> 
      <match url="^(.*)$" ignoreCase="false" /> 
      <conditions> 
       <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" /> 
       <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" /> 
       <add input="{URL}" pattern="^system.*" ignoreCase="false" /> 
      </conditions> 
      <action type="Rewrite" url="/index.php?/{R:1}" appendQueryString="false" /> 
      </rule> 
      <rule name="Imported Rule 2" stopProcessing="true"> 
      <match url="^(.*)$" ignoreCase="false" /> 
      <conditions> 
       <add input="{URL}" pattern="^application.*" ignoreCase="false" /> 
      </conditions> 
      <action type="Rewrite" url="/index.php?/{R:1}" appendQueryString="false" /> 
      </rule> 
      <rule name="Imported Rule 3" stopProcessing="true"> 
      <match url="^(.*)$" ignoreCase="false" /> 
      <conditions> 
       <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" /> 
       <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" /> 
      </conditions> 
      <action type="Rewrite" url="index.php?/{R:1}" appendQueryString="false" /> 
      </rule> 
     </rules> 
     </rewrite> 
    </system.webServer> 
</configuration> 

我的問題是如何部署IIS這個PHP站點7?

回答

0

A virtual directory是一個目錄名稱,用於地址中,該地址對應於服務器上的物理目錄。您可以添加一個虛擬目錄,將目錄內容包含在網站或應用程序中,而無需將內容物理移動到該網站或應用程序目錄中。

creating iis7 sites applications and virtual directories

another guide

相關問題