Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

How to access the built website from outside

Avatar

Level 6

Hi,

So I copied the working website built with Adobe CQ to another test server.

From port 4502 I can work with Adobe CQ and see preview of pages...  I see in  WCM all pages as published.

But my question is: how can I see the website just typing URL without entering to Adobe CQ?

1 Accepted Solution

Avatar

Correct answer by
Level 10

Lets follow small checklist:

  1. Your pages working fine in author instance.
  2. Your publish instance is at port 4503, with siteadmin url is http://localhost:4503/siteadmin
  3. Logout and login again in publish instance to see changes
  4. Open a page in author instance, activate it. Once activated change the port number in url from 4502 to 4503 ( remove cf# if present ). and check if page is loading properly.
  5. Use Activate tree in replication section to activate your pages
  6. Replicate your code package from author. Go to localhost:4503/crx/de and check whether you are able to see code under /apps and pages under /content or not.

Check above steps and let me know.

View solution in original post

26 Replies

Avatar

Level 10
  1. Currently you are seeing pages in Author instance ( defualt port 4502 ) of AEM, 
  2. Create one publish instance of AEM, (its just an another AEM instance running on 4503 port and cq-publish-4502.jar file name default), replicate your code and pages from package manager to the instance. thats it.
  3. Live page are always accessed from publish instance ( by default it runs on 4503 port).
  4. Here is good documentation link: https://docs.adobe.com/docs/en/cq/5-6-1/wcm/page_publish.html

Avatar

Employee

Hi,

you need to look into using a web server/Dispatcher[1], this will map your server, port number to your site. 

You really need to start looking into Web servers and how they work.[2]

Adding a web server/dispatcher in front of author and publish instances usually happens, rather than going directly to the URL port number. But this requires work with you infra/network team. 

For the author instance, the root "/" is usually mapped to the projects/welcome screen, we never map this to a site in author instance. Have a look at the section for Day CQ Root Mapping [3]. On a publish instance this would be mapped to your site (or you could do this as a re-direct using your web server)

Regards,

Opkar

 

[1]https://docs.adobe.com/docs/en/dispatcher/disp-install.html#Apache Web Server

[2] http://httpd.apache.org/

[3]https://docs.adobe.com/docs/en/aem/6-1/deploy/configuring/osgi-configuration-settings.html

Avatar

Level 6

hi @Opkal Gill

thank you for the reply.

I don't have any Apache Server, just java and quickstart.jar

Avatar

Level 6

Hi again

in point 2 you say to use the package manager. I am using CQ5.5 there is nothing about publish instance. in AEM6 there is.

I installed the publish instance, i see the geometric site. but not mine.

What else I am missing to do?

Avatar

Level 6

host.com:4503/etc/replication/agents.author/publish.html

 

Default Agent (publish)

Agent that replicates to the default publish instance.

Avatar

Employee

The basic concept of author and publish instance will be there in CQ5.5 as well.

You would also need to deploy your codebase(apps package) to your publish instance, you can then either deploy your content package or activate from your publish instance, which would send the content via a replication agent.

https://docs.adobe.com/docs/en/cq/5-5/wcm/page_publish.html

https://docs.adobe.com/docs/en/cq/5-5/deploying/installing_cq.html#Installing%2520CQ

Avatar

Level 10

Hi,

Enable your replication agent, by default they are enabled and set to port 4503.

then, from http://localhost:4502/crx/packmgr/index.jsp replicate you Content package + Code package to publish instance.

Ensure that packages are replicated successfully, 

Here is the Doc link for packages and its simple: http://docs.adobe.com/docs/en/crx/2-3/how_to/package_manager.html

Avatar

Employee

You will need to open the replication agent and then enable it

Avatar

Level 6

Thank you again.

I just didnt't open Package Manager and didn't import both packages in the port 4503

I am doing it now.

Avatar

Level 6

03.08.2015 15:49:41 - INFO - publish : Replication (ACTIVATE) of /etc/replication/agents.author/publish successful.
03.08.2015 15:51:45 - INFO - publish : Creating content for page /content/aspiag
03.08.2015 15:51:45 - INFO - publish : Sending POST request to http://localhost:4503/bin/receive?sling:authRequestLogin=1
03.08.2015 15:51:45 - INFO - publish : sent. Response: 200 OK

 

 

But don't see my webpage.

Avatar

Level 6

activated. still the same outcome.

Avatar

Level 10

You can replicate packages from author instance, no need to navigate to package manager of publish

Avatar

Level 6

ah nice. that was i doing, but still can't see my webpage. only Geometrics

The agent is active with correct log . Webconsole is saying pages are published.

Avatar

Employee

Hi,

Is your content in the publish instance?

What port is your publish instance running on?

For the replication agent Test the connection

Did you update the Day CQ Root mapping as suggested in my earlier message?

Regards,

Opkar

Avatar

Correct answer by
Level 10

Lets follow small checklist:

  1. Your pages working fine in author instance.
  2. Your publish instance is at port 4503, with siteadmin url is http://localhost:4503/siteadmin
  3. Logout and login again in publish instance to see changes
  4. Open a page in author instance, activate it. Once activated change the port number in url from 4502 to 4503 ( remove cf# if present ). and check if page is loading properly.
  5. Use Activate tree in replication section to activate your pages
  6. Replicate your code package from author. Go to localhost:4503/crx/de and check whether you are able to see code under /apps and pages under /content or not.

Check above steps and let me know.

Avatar

Level 6

thank you @edubey.

You are really an expert and also you are online when i need help. Where do you live?

Avatar

Level 10

Thanks Xena_bcn

I live in Chennai, India

Have a great day :)

Avatar

Level 6

1. yes

2. yes

3. logout ---- > can't login again as only the geometrix site log screen comes out

4. 4502 is fine, changing to 4503 makes again:

URL automatically changes to

content/geometrixx/en/toolbar/account/login.html?resource=%2Fsiteadmin&$$login$$

5. Used Activate tree.. Log is fine

6.  don't see any folder apps only content.