-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Phill Coxon wrote:
> I have no idea if this is possible so thought I'd ask those for more
> knowledgeable here.
>
> I'm doing some work on a client website.   I've set up a virtual site
> locally using apache 2 so that I can have a mirror copy of the site to
> make changes and test before uploading to the live site.
>
> At the moment I'm switching between the local and remote sites by
> editing the IP address in /etc/hosts.  
>
> What I'd like to know is if there is any way to set up local dns so that
> I can resolve "examplesite.com" to either my local virtual site, or the
> real live site based on the specified http port.
>
> i.e.:
>
> If I visit examplesite.com (standard port 80) I'll go to the live
> interent site.
>
> But if I visit examplesite.com:81 I'll be redirected to the local
> development virtual site running on my local computer.
>
> Probably can't be done but thought I'd ask and see what suggestions you
> guys can come up with.
>
>
>
you could try Sub domains
eg, www.examplesite.com for live site (and examplesite.com would
redirect to it)
and testing.examplesite.com would be the dev site

- --
python -c "print \"\".join([
\"\x79\x71\x6Du\056vgp\x40ae\142nr\".decode(\"\x72o\164\x5F_13\")[i]
for i  in [1, 12, 9, 5, 13, 0, 4, 3, 5, 0, 0, 8, 11, 10, 7, 11, 9, 4,
9, 13, 6, 4, 9, 2] ] )"

http://www.facebook.com/YellowOnion
msnim:chat?contact=yellow_oni...@hotmail.com
xmpp:yellowon...@jabber.org
http://last.fm/user/Yellow-Onion/
https://launchpad.net/~daniel-hill
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkqOKCsACgkQGplaCYOFvyvwDgCdE+29i7OzE9ZlVel0hPMbEs9S
dskAniUWfb74IGQ5O2ZBBpVayw/7Z3Pb
=qIoJ
-----END PGP SIGNATURE-----

Reply via email to