【问题标题】:In IIS how can i use apache htaccess details在 IIS 中,我如何使用 apache htaccess 详细信息
【发布时间】:2017-04-10 12:12:35
【问题描述】:

下面我提到了 apache htaccess error_log 规范。我如何在 IIS 服务器中使用相同的详细信息。

php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off
# enable PHP error logging
php_flag  log_errors on
php_value error_log  phperrors.log
# prevent access to PHP error log
<Files PHP_errors.log>
 Order allow,deny
 Deny from all
 Satisfy All
</Files>

【问题讨论】:

    标签: php apache iis-7


    【解决方案1】:

    由于 htaccess 用于 httpd 服务器(即 Apache HTTP 服务器),IIS 不会使用它。相反,IIS 使用 Web.config 文件。

    您需要一些用于 IIS 的插件来负责解析 htaccess 文件,或者您可能需要将 htaccess 规则转换为等效的 Web.config 规则。

    https://serverfault.com/questions/30001/php-url-rewriting-with-htaccess-and-microsoft-iis-url-rewriting

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-12-06
      • 2012-04-14
      • 1970-01-01
      • 2015-06-27
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多