开发者

Apache alias - redirect loop

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜