Re: /etc/hosts and DNS Behavior
- From: Adam Hooper <adamh densi com>
- To: "Thomas F. O'Connell" <tfo netcentral com>
- Cc: epiphany-list gnome org
- Subject: Re: /etc/hosts and DNS Behavior
- Date: Fri, 16 Apr 2004 15:48:28 -0400
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Thomas F. O'Connell wrote:
| Then, I'd like to be able to modify /etc/hosts, launch another instance
| of Epiphany that used the modified version of /etc/hosts.
|
| Each instance would remember the hosts file in effect at launch.
|
| This way, I could simultaneously review a development and production
| version of the same website merely by modifying my hosts file.
|
| If there's a system-level or Epiphany workaround that I'm not thinking
| of, that'd be great, too!
There is only one instance of Epiphany running on your system per user.
When you launch it again, new window or not, it just latches onto the
currently-running process.
Not to mention, you're talking about what Mozilla should be doing, not
Epiphany.
Furthermore, /etc/hosts should not be abused in that manner. It's meant
to match IP addresses to hosts. It's meant to be permanent.
What you as a web developer should consider using relative URLs. Open
one browser to http://www.test-server.com/test and another to
http://www.test-server.com, where /test is the directory of your test
site. If your pages all use relative URLs, both sites should work properly.
If you need relative URLs that start with "/", it gets trickier. In PHP,
what I usually do is define a "DOC_ROOT" in my global config file for
each checked-out copy of a site. I print all URLs with DOC_ROOT
preceding them. (I realize this DOC_ROOT could be dynamically generated
with some clever substr() stuff, but I never bothered thinking about it.)
- --
Adam Hooper
adamh densi com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAgDiMD7ySSW2J9egRAkP8AJ9Bxy8y3/2DL0LGrkickGDTeHtbewCdG2cB
xHosgxWMPKtSUEsOTkHRQbA=
=BNL2
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]