vanity URl not used | Community
Skip to main content
Level 4
October 20, 2021
Solved

vanity URl not used

  • October 20, 2021
  • 2 replies
  • 3031 views

what if commented out below line in dispatcher farm.any file, when we don't have vanity url packages in publisher/ not used vanity url?

i'm trying to avoid 404 error in dispatcher.

 

/vanity_urls { 

/url "/libs/granite/dispatcher/content/vanityUrls.html"

/file "/tmp/vanity_urls"

/delay 300

}

 

 

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 AlbinIs1

If the 404 is for /libs/granite/dispatcher/content/vanityUrls.htm and not planning to use vanity whitelisting, commenting this section will help to remove those 404 errors.

2 replies

Community Advisor
October 20, 2021

You can remove the /vanity_urls section from farm files, if the vanity whitlisting is not required - white list the vanity URL's in Dispatcher filters

 

Regards

Albin I

www.albinsblog.com

Level 4
October 20, 2021

if we don't have vanity url packages in publisher/ not used vanity url and 

trying to avoid 404 error in dispatcher.

 

commenting out of the above line is sufficient ?

AlbinIs1Community AdvisorAccepted solution
Community Advisor
October 20, 2021

If the 404 is for /libs/granite/dispatcher/content/vanityUrls.htm and not planning to use vanity whitelisting, commenting this section will help to remove those 404 errors.

Ankur_Khare
Community Advisor
Community Advisor
October 20, 2021

Yes you can if you are not going to use vanity url's in your project.

If you try to use vanity url they will throw 404 until unless you haven't allowed those urls explicitly in farm files.

Level 4
October 20, 2021

We don't have any vanity url as such yet, but by default its enable in farm.any like below. due to this there is 404 error, as to fix this error will commenting out below lines going to work?

 

/vanity_urls { 

/url "/libs/granite/dispatcher/content/vanityUrls.html"

/file "/tmp/vanity_urls"

/delay 300

}

Ankur_Khare
Community Advisor
Community Advisor
October 20, 2021

Yes you can no issues with that.