开发者

Apache alias - redirect loop

开发者 https://www.devze.com 2023-02-26 19:18 出处:网络
I have a VirtualH开发者_如何学运维ost configured as below: AliasMatch/static /var/www/alpha101/media/static

I have a VirtualH开发者_如何学运维ost configured as below:

AliasMatch  /static /var/www/alpha101/media/static

When I tried to access anything from www.mydomain.com/static/css/style.css, it says "redirect loop".

Is there way way I can solve this problem?


Take a look at the documentation for AliasMatch: http://httpd.apache.org/docs/2.0/mod/mod_alias.html#aliasmatch

AliasMatch is uses regex matching instead of simple prefix matching.

In your case, using Alias would be more appropriate:

Alias /static /var/www/alpha101/media/static
0

精彩评论

暂无评论...
验证码 换一张
取 消