Skip to main content
anandr1644048
Level 2
Jan 22, 2016 11:21 AM UTC
Solved

Issues with vanity_url rule on dispatcher

Hi All,

Have you used the following rules anytime at dispatcher?

/vanity_urls {    

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

       /file "/tmp/vanity_urls" 

        /delay 300

}

In our project we have allowed only certain pattern of url to be served from dispatcher. However vanity URL does not follow this pattern.

Documentation says that if we use above rule in the dispatcher then it would allow vanity URLs even though the pattern is not allowed in filter section. The problem that I am facing is , file "/tmp/vanity_urls" is not being created even though the dispatcher has write access. Can anybody let me know if they have faced the same issue ?

P.S : I have installed VanityURLS-Components and if I create  “/tmp/vanity_urls" manually and add vanity URLs , then the functionality is working fine. Issue is the vanity_urls file is not being created/updated periodically.

Env Details :

CQ : 5.6.1

Webserver : IBM Httpserver 7.0 ( 32 bit )

Dispatcher : dispatcher-apache2.2-linux-i686-4.1.11.tar.gz

Regards,

Anand

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Kunal_Gaba_
Kunal_Gaba_Accepted solution
New Member
Jan 22, 2016 3:57 PM UTC

Have you verified the following URL works on the render instance - /libs/granite/dispatcher/content/vanityUrls.html ? Also, in the access.log file of the renderer find this URL and see if it is getting called after every 300 sec or not. If it is not getting called then enable debug [1] log level on dispatcher and monitor the dispatcher logs. 

If you do not see any message in the dispatcher log file as well then it will be good to raise this issue with on the day care support portal https://daycare.day.com/home/createaticket.html. 

[1] https://helpx.adobe.com/experience-manager/kb/troubleshooting-dispatcher-flushing-issues.html

15 replies

harender009
Mar 17, 2017 8:44 AM UTC

Hi Kristian,

I have followed your blog and set up everything as given. But I am also getting same problem. First time the temp file gets created properly. But It is not getting updated when we introduced new vanity url.

Could you please suggest here.

 

Thanks & Regards,

Vijay

Translate
harender009
Mar 17, 2017 8:48 AM UTC

Hi Anand,

Have you found the solution . Any luck?

Thanks & Regards,

Vijay

Translate
rajk66466400
Oct 26, 2017 5:49 PM UTC

Hi,

I am not able to access vanity url s starts with home ex:/homecare, /homehealth any string starts with home.

I commented the entry

RewriteCond %{REQUEST_URI} !^/home

in dispatcher  stilL it is not resolved.please help on this

Translate
jitendra_m
Level 2
Jan 16, 2018 12:49 PM UTC

Hi,

I tried localhost:4503/libs/granite/dispatcher/content/vanityUrls.html and it lists all the vanity urls and also I can access the vanity url though localhost:4503/testVanityUrl.html but still not able to access via dispatcher and got 404 error - "Unable to fetch vanity URLs from localhost:4503/libs/granite/dispatcher/content/vanityUrls.html: remote server returned: HTTP/1.1 404 Not Found".

I have already given the READ permission to "everyone" group as well as to "anonymous" user but no luck. I have allowed the path in /filter section but not sure if anything needs to be done in /cache section.

Please suggest.

Thanks,

Jitendra

Translate
anandr1644048
Level 2
Jan 29, 2018 5:49 PM UTC

check if your dispatcher blocking your request.. check in the filter section or enable the debug logs in the dispatcher and see what is the exact error.

Translate