Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

How to change/access author localhost to anyother name

Avatar

Avatar
Validate 1
Level 2
surendarm613658
Level 2

Likes

6 likes

Total Posts

33 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
surendarm613658
Level 2

Likes

6 likes

Total Posts

33 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
View profile
surendarm613658
Level 2

23-08-2020

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back 3
Level 4
SundeepKatepally
Level 4

Likes

76 likes

Total Posts

76 posts

Correct Reply

21 solutions
Top badges earned
Give Back 3
Boost 10
Boost 25
Boost 50
Affirm 10
View profile

Avatar
Give Back 3
Level 4
SundeepKatepally
Level 4

Likes

76 likes

Total Posts

76 posts

Correct Reply

21 solutions
Top badges earned
Give Back 3
Boost 10
Boost 25
Boost 50
Affirm 10
View profile
SundeepKatepally
Level 4

23-08-2020

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.

Answers (2)

Answers (2)

Avatar

Avatar
Give Back 3
Level 4
SundeepKatepally
Level 4

Likes

76 likes

Total Posts

76 posts

Correct Reply

21 solutions
Top badges earned
Give Back 3
Boost 10
Boost 25
Boost 50
Affirm 10
View profile

Avatar
Give Back 3
Level 4
SundeepKatepally
Level 4

Likes

76 likes

Total Posts

76 posts

Correct Reply

21 solutions
Top badges earned
Give Back 3
Boost 10
Boost 25
Boost 50
Affirm 10
View profile
SundeepKatepally
Level 4

23-08-2020

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

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,133 likes

Total Posts

3,161 posts

Correct Reply

1,079 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,133 likes

Total Posts

3,161 posts

Correct Reply

1,079 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
Employee

23-08-2020

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.