我已配置映射到发布环境的调度程序。我已经像这样配置了过滤器部分:
/filter
{
# Deny everything first and then allow specific entries
/0001 { /type "deny" /glob "*" }
# Open consoles
# /0011 { /type "allow" /url "/admin/*" } # allow servlet engine admin
# /0012 { /type "allow" /url "/crx/*" } # allow content repository
# /0013 { /type "allow" /url "/system/*" } # allow OSGi console
# Allow non-public content directories
# /0021 { /type "deny" /url "/apps/*" } # allow apps access
# /0022 { /type "allow" /url "/bin/*" }
/0023 { /type "deny" /url "/content*" } # disable this rule to allow mapped content only
# /0024 { /type "allow" /url "/libs/*" }
# /0025 { /type "deny" /url "/libs/shindig/proxy*" } # if you enable /libs close access to proxy
# /0026 { /type "allow" /url "/home/*" }
# /0027 { /type "allow" /url "/tmp/*" }
# /0028 { /type "allow" /url "/var/*" }
/0029 { /type "deny" /url "/etc/" }
/0030 { /type "allow" /url "/etc.clientlibs/*" }
/0031 { /type "allow" /url "/content/*" }
/0032 { /type "allow" /url "/etc/designs/*" }
/0033 { /type "allow" /url "/etc/clientlibs/*" }
/0034 { /type "allow" /path "/libs/granite/csrf/token" /extension '(json)' }
/0035 { /type "allow" /method '(GET)' /path "/content/we-retail" /selectors '(img)' /extension '(jpeg)' }
# Enable extensions in non-public content directories, using a regular expression
/0044 {/type "allow" /extension '(css|gif|ico|js|png|swf|jpeg|woff2|woff|tff)' }
# Enable features
/0062 { /type "allow" /url "/libs/cq/personalization/*" } # enable personalization
# Deny content grabbing, on all accessible pages, using regular expressions
#/0081 { /type "deny" /selectors '((sys|doc)view|query|[0-9-]+)' /extension '(json|xml)'}
# Deny content grabbing for /content
# /0082 { /type "deny" /path "/content" /selectors '(feed|rss|pages|languages|blueprint|infinity|tidy)' /extension '(json|xml|html)' }
#/0087 { /type "allow" /method "GET" /extension 'json' "*.1.json" } # allow one-level json requests
}
我已经允许jpeg加载到我所知的最好但我不知道哪个规则阻止加载的jpeg图像。附图显示了在加载时禁止403的jpeg。
提前致谢