How to change AEM hostname from localhost to <any other name>?
Hi,
I need to change the AEM hostname from localhost to any other name?
How can I do so?
Thanks,
Himanshu
Hi,
I need to change the AEM hostname from localhost to any other name?
How can I do so?
Thanks,
Himanshu
Hi
As correctly mentioned by Lee and Tuhin,
If the aim of your use-case is to change the URL from “localhost” to something else, on a local system then
For Windows 10 and 8
Press the Windows key.
Type Notepad in the search field.
In the search results, right-click Notepad and select Run as administrator.
From Notepad, open the following file: c:\Windows\System32\Drivers\etc\hosts
127.0.0.1 www.example.com
Click File > Save to save your changes.
For Windows 7 and Vista
Click Start > All Programs > Accessories.
Right-click Notepad and select Run as administrator.
Click Continue on the Windows needs your permission UAC window.
When Notepad opens, click File > Open.
In the File name field, type C:\Windows\System32\Drivers\etc\hosts.
Click Open.
127.0.0.1 www.example.com
Click File > Save to save your changes.
Linux
Open a terminal window.
Open the hosts file in a text editor (you can use any text editor) by typing the following line: sudo nano /etc/hosts
Enter your domain user password.
Make the necessary changes to the file.
Press Control-x.
When asked if you want to save your changes, answer y.
Mac
Open Applications > Utilities > Terminal.
Open the hosts file by typing the following line in the terminal window: sudo nano /private/etc/hosts
Type your domain user password when prompted.
Edit the hosts file.
The file contains some comments (lines starting with the # symbol), and some default hostname mappings (for example, 127.0.0.1 – local host). Add your new mappings after the default mappings.
Save the hosts file by pressing Control+x and answering y.
Make your changes take effect by flushing the DNS cache with the following command: dscacheutil -flushcache
Reference Link:- https://support.rackspace.com/how-to/modify-your-hosts-file/
And , if your use-case it to deploy actually, then please refer to this documentation link:- https://docs.adobe.com/docs/en/aem/6-2/deploy/application-server-install.html
I hope this will help you.
Thanks and Regards
Kautuk Sahni
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.