Re: Is it possible to configure two subdomains for an IP address?

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

 



On Thu, Mar 19, 2009 at 6:15 AM, Rex C. Eastbourne
<rex.eastbourne@xxxxxxxxx> wrote:
>
> Thanks for the replies. I am working on a Slicehost server with a static IP
> address; it looks something like 173.23.45.67. I'm able to navigate to this
> IP address from any computer as if it were any other domain name. What I was
> wondering is whether it's possible to navigate to a "subdomain" of an IP
> address, so that "testing.173.23.45.67" and "production.173.23.45.67" would
> be an actual valid websites. However, I am starting to get the feeling that
> this might not be possible.

This  is indeed impossible. I wonder where you ever got the feeling
that this might be possible.

 I'll ask the owner of my Slicehost VPS to buy us
> a domain name so that I can have "testing.mysite.com", etc. Hopefully that
> will make this configuration easier.

What you can do is just make up a domain name, and add it to your
/etc/hosts file (on the machine you are testing from)

So you could add:
173.23.45.67    testing.mydomain.local production.mydomain.local to
your /etc/hosts.

Important: You need to do this on the machine you run your webbrowser
on, not the machine you run your webserver (although it won't harm
there either).

Krist


-- 
krist.vanbesien@xxxxxxxxx
krist@xxxxxxxxxxxxx
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-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