Re: Testing a pre-live website triggers redirection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In gmane.comp.apache.user, you wrote:
>
> I am trying to test a subdomain hosted in a hosting service while
> simultaneously running the same subdomain in an in-house server,
> by adding an entry to the hosts file.
>
> The idea is to make my test client (a windows 10 desktop) think that the su=
> bdomain being tested resolves to the IP address I added in the hosts file,
> not the global IP address that the authoritative DNS returns.=20
>
> Is it possible?

What I do to support my website(s) is to use the below URL/Domain Name
scheme:

        https://example.com     for the (obviously) remotely hosted website
        https://example.tst     for the local copy/devl of the website.

 ... and enter example.tst (and www.example.tst) in /etc/hosts
I employ *no other* complexity.

It might be tedious,but /etc/hosts could also contain entry lines for

	https://a.example.tst 
        https://b.example.tst
        https://c.example.tst
        https://etc.example.tst

I can move back and forth (and step on my dick) by merely over-typing the
tst/com glyphs.

HTH
Jonesy
--
  Marvin L Jones    | Marvin      | W3DHJ.net  | linux
   38.238N 104.547W |  @ jonz.net | Jonesy     |  FreeBSD
    * Killfiling google & XXXXbanter.com: jonz.net/ng.htm


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux