如何将nginx规则重写为htacces规则?

时间:2016-04-23 07:35:09

标签: apache nginx

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

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

1 个答案:

答案 0 :(得分:0)

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

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