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

How to change/access author localhost to anyother name

Avatar

Level 3

Team,

 

I have installed AEM 6.5 in my personal windows laptop on a Rhel - Linux7 machine and i am able to access AEM console via http://localhost:4502. Any idea how i connect this machine with a different name,it can be any name instead of a localhost. I tried adding below entry in /etc/hosts file, but no luck... Any suggestions please how to overcome this problem.

 

/etc/hosts entry

127.0.0.1 aemsite.com

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Also you can use apache i.e. in /etc/httpd , you can add you publish instance as the origin and apache can have any domain.

View solution in original post

5 Replies

Avatar

Employee Advisor

This is not an AEM specific question; you don't need to configure any hostname on AEM just for accessing it, but there might be occassions where you need to do that.

 

To your problem: According to https://www.redhat.com/sysadmin/set-hostname-linux you can use /etc/hosts to create an alias for localhost.

Avatar

Level 3
Thanks for the suggestions. The reason why i need this is - i have a prod instance in which i access it via hostname hence to have one-one test validation on my local PC i need the hostname instead of localhost

Avatar

Level 3
Thanks Jorg & Sundeep.... It worked after i disabled firewall rules in my Linux machine

Avatar

Community Advisor

in the /etc/hosts file you can man localhost(127.0.0.1) to any other name you like , so that you can access with that name.

 

Also there is another option , use 3rd part software called ngrok which does similar job. 

Use the comand ngrok http 4502 , it will give you the host name thru which you can access (note: You need to install ngrok plugin for this)

Avatar

Correct answer by
Community Advisor

Also you can use apache i.e. in /etc/httpd , you can add you publish instance as the origin and apache can have any domain.