the whole webserver+dispatcher setup has 2 "active" parts:
* the dispatcher fetches the content from the render (=AEM) and stores it on disk
* the webserver handles incoming requests and serves the response from disk.
So both parts need to agree on the location where the files are stored. That means that both in the dispatcher configuration and in the httpd webserver configuration the location of the cache must be specified. And of course these paths should be identical 🙂
As recommended that the cacheroot(doc root ) must be equal to the document root of the web-server.
Document Root path in httpd.conf is the directory out of which you will serve your documents. By default, all requests are taken from this directory.
and docrootin dispatcher.any is the path where cache gets created.
So even though you find that cache gets created under doc root but page request will not serve cached documents because web server tries to find all cached document under document root and if not found then send request to server.