2013-05-17 28 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

相关问题