Dispatcher Setup Configuration Queries | Community
Skip to main content
nchandra
Level 2
May 29, 2018 2:45 AM UTC
Solved

Dispatcher Setup Configuration Queries

We are setting up dispatcher in Apache for the AEM environment, have couple of queries

1.  Dispatcher don't have the write permissions in document root (due to some security guidelines), instead we created  below 3 folders and a stat file under document root which have write permissions

               - etc

               - etc.clientlibs

               - content

               - .stat

        Are this folders are good enough to cache the static content?

2.  What are the recommended approach to clear the client libs cache (which are under etc or etc.clientlibs folder)?

Thanks,

Chandra

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
akhoury
akhouryAccepted solution
Employee
May 29, 2018 3:49 PM UTC

1.  Dispatcher don't have the write permissions in document root (due to some security guidelines), instead we created  below 3 folders and a stat file under document root which have write permissions

With the configuration you have, you are blocking root vanity url .html files from getting cached (e.g. /promo.html).  Why not put the cache folders under a subfolder of your web server root?  For example /var/www/html/siteA (where siteA is then name of the dispatcher farm / site.

To do this, in your Apache httpd conf VirtualHost for dispatcher you would set DocumentRoot to /var/www/html/siteA.  Then set the /docroot in your .any farm configuration to the same well.

2.  What are the recommended approach to clear the client libs cache (which are under etc or etc.clientlibs folder)?

Many customers use this tool for that: Dispatcher Flush UI

3 replies

nchandra
nchandraAuthor
Level 2
May 29, 2018 8:59 PM UTC

Thanks Andrew Khoury, this helps.

# Response1 :  I believe they don't change the doc root path in httpd conf file. Am planning to use redirect.conf to handle the vanity URL's.

# Response 2 : Dispatcher Flush UI  ​  this really helps.

Thanks,

Chandra

Translate
smacdonald2008
Level 10
May 29, 2018 7:29 PM UTC

Nice response!

Translate
akhoury
akhouryAccepted solution
Employee
May 29, 2018 3:49 PM UTC

1.  Dispatcher don't have the write permissions in document root (due to some security guidelines), instead we created  below 3 folders and a stat file under document root which have write permissions

With the configuration you have, you are blocking root vanity url .html files from getting cached (e.g. /promo.html).  Why not put the cache folders under a subfolder of your web server root?  For example /var/www/html/siteA (where siteA is then name of the dispatcher farm / site.

To do this, in your Apache httpd conf VirtualHost for dispatcher you would set DocumentRoot to /var/www/html/siteA.  Then set the /docroot in your .any farm configuration to the same well.

2.  What are the recommended approach to clear the client libs cache (which are under etc or etc.clientlibs folder)?

Many customers use this tool for that: Dispatcher Flush UI

Translate