Skip to main content

Posts

Showing posts from December, 2019

Make dispatcher beautiful again

I started setting up a local AEM dispatcher after years today. The start wasn't great as after setting up the ssl, vhost and dispatcher.any, i got to the error that the dispatcher doesn't work with the Apache shipped with mac . that was the first learning of the day. Thanks to brew, i was up and running with the latest Apache in minutes. Once the installation was working, i started working on the filter rules and was annoyed with the numbering of rules. This is what my filter looked like. /filter { /0001 { /type "deny" /glob "*" } /0002 { /type "allow" /url "/content*" } /0003 { /type "allow" /extension '(clientlibs|css|gif|ico|js|png|swf|jpe?g|woff2?)' } /0004 { /type "allow" /url "/libs/cq/personalization/*" } #enable personalization /0005 { /type "deny" /selectors '((sys|doc)view|query|[0-9-]+)' /extension '(json|xml)' } /0006 { /