Dispatcher not retrieving content with Vhost but will display already cached content

Avatar

Avatar

kentt20248023

Avatar

kentt20248023

kentt20248023

10-10-2018

We have a domain resolving to our AEM environment and we are seeing this issue.

A call using the domain "http://staging.thissite.com/page" will not retrieve the content at /content/site/en/page.html however we do get the site custom error page.

If the content has been cached previously using "http://dispatcher.url.com/content/thissite/en/page.html" then it will be served correctly using the URL above.

So our virtual host redirects are working and do point to the cache location but will not make the dispatcher retrieve the content if not already cached.

Our dispatcher logs are set to debug(3) but we are not seeing any entries except for the single call and a 404.

The one difference between the two calls that I can see is that during the 404 we are getting [publishfarm/0] and during a successful return we are getting [publishfarm/-].

View Entire Topic

Avatar

Avatar

kentt20248023

Avatar

kentt20248023

kentt20248023

10-10-2018

yourSiteName.conf contents in /etc/httpd/conf.d

<VirtualHost *:80>

  ServerName staging.yourSiteName.com

  RewriteEngine On

RewriteCond %{REQUEST_URI} !^/apps

RewriteCond %{REQUEST_URI} !^/bin

RewriteCond %{REQUEST_URI} !^/content

RewriteCond %{REQUEST_URI} !^/etc

RewriteCond %{REQUEST_URI} !^/home

RewriteCond %{REQUEST_URI} !^/libs

RewriteCond %{REQUEST_URI} !^/tmp

RewriteCond %{REQUEST_URI} !^/var

  RewriteRule ^/(.*)$ /content/bcbs/ecards/en/$1.html [PT,L]

  DocumentRoot /mnt/var/www/html

   <Directory /mnt/var/www/html>

     <IfModule disp_apache2.c>

       SetHandler dispatcher-handler

       ModMimeUsePathInfo On

     </IfModule>

     Options FollowSymLinks

     AllowOverride None

   </Directory>

</VirtualHost>