Dispatcher Setup Configuration Queries | Community
Skip to main content
nchandra
New Participant
May 29, 2018
Solved

Dispatcher Setup Configuration Queries

  • May 29, 2018
  • 3 replies
  • 2158 views

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.
Best answer by akhoury

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
New Participant
May 29, 2018

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

smacdonald2008
New Participant
May 29, 2018

Nice response!

akhoury
akhouryAccepted solution
Employee
May 29, 2018

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