View previous topic :: View next topic |
Author |
Message |
James Cook -
Joined: 13 Oct 2018 Posts: 13 Location: Michigan USA
|
Posted: Mon Jan 18, 2021 5:22 pm Post subject: Using localhost |
|
|
In setting up and testing sites, I can set localhost as the Host Name for any site and readily access that site while working on the server itself.
That only works for one site at a time though, and requires that I change it in order to test another site. It would be very convenient to have a local access for each site saved and available at any time.
Is there anything I can add to localhost in order to make it an alternate access to any of the sites on the server? _________________ Jim |
|
Back to top |
|
|
tfh -
Joined: 03 May 2020 Posts: 112 Location: Netherlands
|
Posted: Mon Jan 18, 2021 8:23 pm Post subject: Re: Using localhost |
|
|
James Cook wrote: | In setting up and testing sites, I can set localhost as the Host Name for any site and readily access that site while working on the server itself.
That only works for one site at a time though, and requires that I change it in order to test another site. It would be very convenient to have a local access for each site saved and available at any time.
Is there anything I can add to localhost in order to make it an alternate access to any of the sites on the server? |
I don't know what OS you are using. But if it's windows, you can use the windows hosts file to bypass normal DNS and point the URL's you wish to localhost.
You can then just use the normal hostnames in Abyss and setup your hosts file like:
127.0.0.1 domain1.com
127.0.0.1 domain2.com
127.0.0.1 sub.donain2.com
For Windows you can find an explanation here:
https://www.liquidweb.com/kb/edit-host-file-windows-10/
You will need the X2 version of Abyss to host multiple sites though. _________________ https://www.arnauddeklerk.com
https://www.file-hunter.com |
|
Back to top |
|
|
James Cook -
Joined: 13 Oct 2018 Posts: 13 Location: Michigan USA
|
Posted: Mon Jan 18, 2021 9:41 pm Post subject: |
|
|
Thanks, that's helpful and solved the problem perfectly.
I do have a full and up to date license for Abyss as well for this development server. Gotta take care of Aprelium and keep them in business.
In hosts I actually entered the domains with a .local instead of .com or .org. As a result, in a browser I can enter domain.local as the URL to keep it local, or I can use the actual .com URL to hit the site via an internet connection.
Of course, that required an additional Host Name entry in the Abyss configuration, but it's well worth it for my needs.
Thanks again! _________________ Jim
Last edited by James Cook on Thu Feb 04, 2021 1:54 pm; edited 1 time in total |
|
Back to top |
|
|
|