Dispatcher configuration | Community
Skip to main content
Level 6
April 21, 2022

Dispatcher configuration

  • April 21, 2022
  • 1 reply
  • 2288 views

Hi,

 

I am trying to develop sitemap scheduler with apache sling sitemap, I just added this configuration in config.publish like this 

{
"scheduler.name": "My Daily Sitemap Scheduler",
"scheduler.expression": "0 0 2 1/1 * ? *",
"searchPath": "/content/dumysite"
}

I didnt add dispatcher configuration in filters.any, rewrite.rules, will sitemap works without dispatcher configuration. 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Anish-Sinha
Adobe Employee
Adobe Employee
April 21, 2022

HI @vani1012 ,

Yes, you don't need to have any specific rules other than the re-write rules for the sitemap. No entry in filter is required. other than opening the .xml extension.

Also, you will need dispatcher entries only in case you are using a domain. For localhost you can test it without any dispatcher entry.

Vani1012Author
Level 6
April 21, 2022

Hi Anish,

 

I am not having rewrite.rules in dispatcher,do I need to manually create that file.

Vani1012Author
Level 6
April 22, 2022

No need if you are using your localhost. It will be only needed if you are using domain i.e. www.abc.com/xx/xx/xx.sitemap.xml 

What is the url you are using to access the sitemap?


Hi @anish-sinha ,

 

I am using this url http://localhost:4504/content/dumysite/us.sitemap.xml

I am getting correct output, but when I tried at publish instance the page isnt even loading http://localhost:4503/content/dumysite/us.sitemap.xml

Us page is available at publish instance but us.sitemapxml isnt at all loading, PFA