| 
 1、下载 EduSoho后,解压缩,先看看我的站点目录结构 
 
 2、IIS路径配置 
 
 3、files目录权限设置,去除脚本权限 
 
 4、修改php.ini文件的以下参数: post_max_size = 1024Mupload_max_filesize = 1024Mmemory_limit = 1024Mmax_excution_time = 3005、提高IIS本身的上传大小限制 找到 C:\Windows\System32\inetsrv\config\schema\IIS_schema.xml 停止IIS,将权限分配给管理员,按照如下提示修改: 30000000" />//这里多加个0,支持300M......6、URL重写(url rewrite) 方法一:直接导入URL重写规则,如下: - RewriteCond %{REQUEST_FILENAME} .*\..+$
 
  
- RewriteCond %{REQUEST_FILENAME} ^(.(?!m3u8))*$
 
  
- RewriteCond %{REQUEST_FILENAME} ^(.(?!json))*$
 
  
- RewriteRule (.*) $1 [L]
 
  
- # we keep the .php files unchanged
 
  
- RewriteRule (.*\.php)(.*) $1$2 [L]
 
  
- RewriteRule (.*) /app.php [L]
 
  复制代码 
 
 方法二:编辑网站WEB根目录下的web.config文件如下:   - <?xml version="1.0" encoding="UTF-8"?>
 
 -     <configuration>
 
 -         <system.webServer>
 
 -             <security>
 
 -                 <requestFiltering>
 
 -                     <requestLimits maxAllowedContentLength="1000000000" />
 
 -                 </requestFiltering>
 
 -             </security>
 
 -             <modules>
 
 -                 <add name="XSendfile" type="XSendfile.XSendfileHttpModule" />
 
 -             </modules>
 
 -             <rewrite>
 
 -                 <rules>
 
 -                     <rule name="Imported Rule 1" stopProcessing="true">
 
 -                         <match url="(.*)" ignoreCase="false" />
 
 -                         <conditions logicalGrouping="MatchAll">
 
 -                             <add input="{REQUEST_FILENAME}" pattern=".*\..+$" ignoreCase="false" />
 
 -                             <add input="{REQUEST_FILENAME}" pattern="^(.(?!m3u8))*$" ignoreCase="false" />
 
 -                             <add input="{REQUEST_FILENAME}" pattern="^(.(?!json))*$" ignoreCase="false" />
 
 -                         </conditions>
 
 -                         <action type="Rewrite" url="{R:1}" />
 
 -                     </rule>
 
 -                     <rule name="Imported Rule 2" stopProcessing="true">
 
 -                         <match url="(.*\.php)(.*)" ignoreCase="false" />
 
 -                         <action type="Rewrite" url="{R:1}{R:2}" />
 
 -                     </rule>
 
 -                     <rule name="Imported Rule 3" stopProcessing="true">
 
 -                         <match url="(.*)" ignoreCase="false" />
 
 -                         <action type="Rewrite" url="/app.php" />
 
 -                     </rule>
 
 -                 </rules>
 
 -             </rewrite>
 
 -         </system.webServer>
 
 -     </configuration>
 
  复制代码 
 
 
7、大于30M文件无法上传的问题: 打开IIS管理器,找到Default Web Site。先进行停止。 
在IIS中双击“请求筛选”打开。 
点击右边的“编辑功能设置”,打开“编辑请求筛选设置”对话框。 
其中的允许的最大容量长度,默认是”30000000“,30M,将其修改为你所需要的大小即可。 
启动IIS.  
 
 |