Expand my Community achievements bar.

SOLVED

Dispatcher Setup Configuration Queries

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Employee

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

View solution in original post

3 Replies

Avatar

Correct answer by
Employee

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

Avatar

Level 2

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