Hello all,
I'm trying to configure CQ DAM with Apache 2.2 and Dispatcher, to serve only assets.
I've successfully configured them, as when I upload a new asset, it automatically replicates in Publish instance and perfom the cache. Thus I can access the new image via:
Author: localhost:4502/content/dam/NEWFOLDER/image.jpg
Publish: localhost:4503/content/dam/NEWFOLDER/image.jpg
Dispatcher: localhost/content/dam/NEWFOLDER/image.jpg
However I would like to use a shorten URL to this image, for example:
localhost/NEWFOLDER/image.jpg
In other words, remove the /content/dam piece from the request URL.
I've checked the following threads:
http://www.wemblog.com/2012/07/how-to-use-dispatcher-with-mapped.html
http://helpx.adobe.com/cq/kb/HowToFlushMappedContent.html
But as far as I understand I don't need to configure the /etc/map in the Publish instance, as I'm only using DAM and configuring mod_rewrite at Apache server would be enough.
So, in the httpd.conf I wrote the following rule:
RewriteEngine On
RewriteRule ^/(.*)$ /content/dam/$1 [PT]
And Dispatcher.any is the default one.
The point is, when I disable the Dispatcher, I'm able to type the shorten URL and get the image. But this is not happening otherwise, when the Dispatcher is on I get the Not Found error: /image.jpg as it's looking for the image at root directory.
So, any clues on how I can achieve this?
Thanks in advance!