开发者

How can Apache serve assets (css, images, scripts) from a different document root?

Is there a way to do this? I'd like for my assets to be served from a different document root, and I'm not sure i开发者_运维技巧f Apache has directives for that.


To serve whole directories from a different location, there's Alias:

Alias /assets /path/to/assetsdir

works in httpd.conf only, though, if you want to point outside the web root.

For specific files there is AliasMatch.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜