Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Accessing AEM in publishing mode without localhost and configuring our own host

Avatar

Level 2

Hi,

I am accessing the AEM in publishing mode by running the jar file - cq5-publish-p4503.jar

The url I am using to access AEM is - http://localhost:4503/content/geometrixx-outdoors/en.html

I want this to be configured as http://myowncontent.com/content/geometrixx-outdoors/en.html

How can this be acheived?

Regards,

Aditya Nayak

1 Accepted Solution

Avatar

Correct answer by
Level 10

Generally recommendation is to use webserver with dispatcher so that you can cache the file & protect against security attacks(Harry updated with this feedback already). To have your own domain as abhinav recommended modify your host file.   

If this is for local development & don;t want to cache and like to use port 80 assuming you do not have any webserver running and port 80 is free.  Update the port to 80 at [1] OR rename jar file to "cq5-publish-p80.jar".   In case you want to block using localhost then configure "Host Name" at [1].    Becareful while modfying [1] it might run cq in different port if you misconfigure.

[1]   http://localhost:4502/system/console/configMgr/org.apache.felix.http

View solution in original post

3 Replies

Avatar

Level 2

Hi Aditya,

You need to have a Webserver (Webserver URL : myOwnContent) . From here you can configure the Dispatcher to connect with your local system AEM .

See http://docs.adobe.com/docs/en/dispatcher.html for more details.

 

Regards

Harry

Avatar

Level 2
You can update the host file on your machine to point localhost to the domain you want tho use.

Avatar

Correct answer by
Level 10

Generally recommendation is to use webserver with dispatcher so that you can cache the file & protect against security attacks(Harry updated with this feedback already). To have your own domain as abhinav recommended modify your host file.   

If this is for local development & don;t want to cache and like to use port 80 assuming you do not have any webserver running and port 80 is free.  Update the port to 80 at [1] OR rename jar file to "cq5-publish-p80.jar".   In case you want to block using localhost then configure "Host Name" at [1].    Becareful while modfying [1] it might run cq in different port if you misconfigure.

[1]   http://localhost:4502/system/console/configMgr/org.apache.felix.http