【问题标题】:How to rewrite nginx rule to htacces rule?如何将 nginx 规则重写为 htaccess 规则?
【发布时间】:2016-04-23 17:43:12
【问题描述】:

如何将此规则从 nginx 配置重写为 apache?

location /bower_components {
    alias /var/www/keepcalm/html/bower_components;
}

【问题讨论】:

    标签: apache nginx


    【解决方案1】:

    您需要在虚拟主机的配置中添加以下代码

    AliasMatch "^/bower_components/(.*)$" "/var/www/keepcalm2/html/bower_components/$1"
    

    【讨论】:

      猜你喜欢
      • 2014-06-30
      • 2016-08-09
      • 1970-01-01
      • 1970-01-01
      • 2020-01-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多