Dispatcher Cache Issue | Community
Skip to main content
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 gkalyan

@randeep_virk 

It looks like virtual host is configured with IP and not domain. Can you check if the /virtualhosts section in your dispatcher.any file includes both the IP address and localhost domain

Something like this?

/virtualhosts { "127.0.0.1" "localhost" }

 

 

4 replies

HrishikeshKagne
Community Advisor
Community Advisor
May 28, 2024

Hi @randeep_virk ,

It's possible that the dispatcher is not caching the page when accessed via the domain name due to a configuration issue. Here are some things you can check:

1. Verify the dispatcher configuration: Check the dispatcher configuration to ensure that the domain name is correctly configured. Make sure that the `virtualhosts` section in the dispatcher configuration file (`dispatcher.any`) includes the domain name and that it is mapped to the correct publisher.

2. Check the DNS configuration: Verify that the DNS configuration for the domain name is correct. Ensure that the domain name is correctly mapped to the IP address of the publisher.

3. Check the request headers: When accessing the page via the domain name, check the request headers to ensure that they are correctly configured. Make sure that the `Host` header is set to the domain name and that it matches the `virtualhosts` configuration in the dispatcher.

4. Check the dispatcher logs: Check the dispatcher logs to see if there are any errors or warnings related to the domain name. The logs may provide more information about the issue.

5. Clear the dispatcher cache: If the above steps do not resolve the issue, try clearing the dispatcher cache and accessing the page again via the domain name. This will force the dispatcher to cache the page again and may resolve any caching issues.

By checking the dispatcher configuration, DNS configuration, request headers, and logs, you should be able to identify and resolve any issues preventing the dispatcher from caching the page when accessed via the domain name.

Hrishikesh Kagane
arunpatidar
Community Advisor
Community Advisor
May 28, 2024

Hi @randeep_virk 
Please check if there is a different config for localhost virtualhost

Arun Patidar
gkalyan
Community Advisor and Adobe Champion
gkalyanCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
May 29, 2024

@randeep_virk 

It looks like virtual host is configured with IP and not domain. Can you check if the /virtualhosts section in your dispatcher.any file includes both the IP address and localhost domain

Something like this?

/virtualhosts { "127.0.0.1" "localhost" }

 

 

kautuk_sahni
Community Manager
Community Manager
June 4, 2024

@randeep_virk Did you find the suggestions from users helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Kautuk Sahni