domain issue in publish env | Community
Skip to main content
Rkush
New Member
October 16, 2015
Solved

domain issue in publish env

  • October 16, 2015
  • 5 replies
  • 1440 views

Hi All,

We are facing an issue with domain.

Explanation:

we have one.html page under "/etc/designs/myproject/publicClientlibs/folder1/html/one.html"

we have a server having system name (system123) and domain is (application-myserver.one.com)

we are getting the page with these URLs :

Using System Name for  Author : http://system123:4502/etc/designs/myproject/publicClientlibs/folder1/html/one.html

Using System Name for publish : http://system123:4503/etc/designs/myproject/publicClientlibs/folder1/html/one.html

Using Domain Name for Author : http://application-myserver.one.com:4502/etc/designs/myproject/publicClientlibs/folder1/html/one.html

But we are getting 404 Page Not found for using domain name with publish

http://application-myserver.one.com:4503/etc/designs/myproject/publicClientlibs/folder1/html/one.html

Could any one please suggest what should be the reason for this behaviour?

Thanks in Advance

Radhika

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 PaulMcMahon

I can think of a number possible causes for the problem:

  1. What is the source of the 404 - is AEM's 404 or another system. If it's not and AEM 404 then perhaps you domain name mapping is incorrect. 
  2. Do you have any Sling mappings that are domain specific - if you sling mappings specific to the domain name then that might explain it. 
  3. If neither of those two situations are true then I'd suggest taking the following steps:
    1. Tail you request.log and error.log when you hit the URL you are interested in using the domain name and see if you get any clue as to what possible cause is - sometimes you'll see interesting messages with a 404.
    2. Go to recent requests page in the Felix admin console immediately after trying to access the page with the domain name and look at the request stack. This will very often tell you why Sling thinks that request is a 404 (mappings, JCR Resource Resolve configs, etc,). 

5 replies

Community Advisor
October 16, 2015

Have you moved code to publish env and activated content?

radhikak8817019
Level 3
October 16, 2015

Hi Everyone,

Thanks for your help :)

 

The issue is resolved now. The problem is due to one of the rule we set under \etc\design\map.publish is rewriting the url of html file. 

the original url published : http://application-myserver.one.com:4503/etc/designs/myproject/publicClientlibs/folder1/html/one.html

/content/myProject/en/ is appended as a prefix in the asset url which is causing the issue and redirected to page not found

http://application-myserver.one.com:4503/content/myProject/en/etc/designs/myproject/publicClientlibs/folder1/html/one.html 

 

We modify the rule and it started working.

Thanks,

RK

PaulMcMahonAccepted solution
Level 8
October 16, 2015

I can think of a number possible causes for the problem:

  1. What is the source of the 404 - is AEM's 404 or another system. If it's not and AEM 404 then perhaps you domain name mapping is incorrect. 
  2. Do you have any Sling mappings that are domain specific - if you sling mappings specific to the domain name then that might explain it. 
  3. If neither of those two situations are true then I'd suggest taking the following steps:
    1. Tail you request.log and error.log when you hit the URL you are interested in using the domain name and see if you get any clue as to what possible cause is - sometimes you'll see interesting messages with a 404.
    2. Go to recent requests page in the Felix admin console immediately after trying to access the page with the domain name and look at the request stack. This will very often tell you why Sling thinks that request is a 404 (mappings, JCR Resource Resolve configs, etc,). 
Rkush
RkushAuthor
New Member
October 16, 2015

Hi, 

Yes we activated the /etc/designs/myproject/publicClientlibs folders from Activate tree.

//RK

Sham_HC
Level 10
October 16, 2015

Hi RK,

Also make use of configuration  test at http://localhost:4503/system/console/jcrresolver

Thanks,
Sham
Twitter: @adobe_sham