Highlighted

Enabling Access to Vanity URLs ( vanityUrls.html )

naga_venkata_sa

08-03-2018

Hi everyone,

I'm trying to implement the Vanity URLs in AEM to give the authors a way to enter the vanity URLs themselves in the page properties, We are currently using Mod_Proxy and Mod_Rewrites which we want to get off by using Adobe VanityUrls, I'm following these documentations https://blog.rackspace.com/enabling-vanity-urls-with-adobe-experience-manager  and the same is mentioned in Adobe dispatcher configuration as-well here's the link Configuring Dispatcher

My issues/doubts here are

1.Creation of /libs/granite/dispatcher/content/vanityUrls.html file, Does that file get created automatically or do we have to create it manually, It is not getting created automatically for me, when I created it manually It doesn't seem to have anything in the file it's always empty(Do we have to add any code or text in this file)

2.Creation of /tmp/vanity_urls in dispatcher Instance(AWS) Will this be created automatically or to be manually created, It didn't work when I created manually

3. Adobe mentions this point (For each vanity URL that you have configured for an AEM or CQ page, ensure that the /filter configuration denies the URL. If necessary, add a filter that denies the URL. ) in Configuring Dispatcher​ , Does this mean we have to deny the original path in the dispatcher?

Please clarify on these, Appreciate a lot, Here is the dispatcher.log file

[Thu Mar 08 16:34:36 2018] [D] [pid 5705] Found farm publishfarm for 127.0.0.1

[Thu Mar 08 16:34:36 2018] [D] [pid 5705] checking [/nginx_status]

[Thu Mar 08 16:34:36 2018] [D] [pid 5705] request URL has no extension: /nginx_status

[Thu Mar 08 16:34:36 2018] [D] [pid 5705] cache-action for [/nginx_status]: NONE

[Thu Mar 08 16:34:36 2018] [D] [pid 5705] Checking vanity URLs

[Thu Mar 08 16:34:36 2018] [D] [pid 5705] Vanity URL file (/tmp/vanity_urls) modified, reloading...

[Thu Mar 08 16:34:36 2018] [D] [pid 5705] Loaded 0 vanity URLs from file /tmp/vanity_urls

[Thu Mar 08 16:34:36 2018] [D] [pid 5705] Filter rejects: GET /nginx_status HTTP/1.1

[Thu Mar 08 16:34:36 2018] [I] [pid 5705] "GET /nginx_status" - - 0ms [publishfarm/-]

[Thu Mar 08 16:34:41 2018] [D] [pid 5706] Found farm publishfarm for 127.0.0.1

[Thu Mar 08 16:34:41 2018] [D] [pid 5706] checking [/nginx_status]

[Thu Mar 08 16:34:41 2018] [D] [pid 5706] request URL has no extension: /nginx_status

[Thu Mar 08 16:34:41 2018] [D] [pid 5706] cache-action for [/nginx_status]: NONE

[Thu Mar 08 16:34:41 2018] [D] [pid 5706] Checking vanity URLs

[Thu Mar 08 16:34:41 2018] [D] [pid 5706] Vanity URL file (/tmp/vanity_urls) modified, reloading...

[Thu Mar 08 16:34:41 2018] [D] [pid 5706] Loaded 0 vanity URLs from file /tmp/vanity_urls

[Thu Mar 08 16:34:41 2018] [D] [pid 5706] Filter rejects: GET /nginx_status HTTP/1.1

[Thu Mar 08 16:34:41 2018] [I] [pid 5706] "GET /nginx_status" - - 0ms [publishfarm/-]

Thanks in advance

Replies

Highlighted

Albin_Issac

MVP

14-03-2018

Please check anonymous user have the read access to /libs/granite/dispatcher/content/vanityUrls.html in publisher?

Regards

Albin I

www.albinsblog.com

Highlighted

Gaurav-Behl

MVP

03-01-2019

Please share the relevant snippets from dispatcher.any, dispatcher log and error log from publish server.

Assuming that you have already installed https://www.adobeaemcloud.com/content/marketplace/marketplaceProxy.html?packagePath=/conte nt/companies/public/adobe/packages/cq600/component/vanityurls-components

and you are able to view the configured vanities @ "localhost:4503/libs/granite/dispatcher/content/vanityUrls.html"