Forum Moderators: phranque

Message Too Old, No Replies

virtual server access without domain name

get to virtual domain using ip address

         

StevenHill

8:22 pm on Mar 17, 2006 (gmt 0)

10+ Year Member



I have an in house server and I can get to the various virtual hosts I have set up internally by modifying my hosts file to point to my in house server.

I have a static ip for my location, but most of the "virtual servers" do not have registered domain names at this point so I can not access from outside my local network.

My question, is there a way when I am wanting to access from elsewhere that I can pass the virtual domain name along with the ip address? I have a virtual domain set up as "thj" on this inhouse server. It is a site I am developing and as yet do not have a registered domain name for it. In house, I add "192.168.1.8 thj" to my hosts file and I get to it with "http://thj" ( actually, just thj) and it works fine. I can also change the hosts file replacing the "192.168.1.8" with my static ip for my DSL account and I can get to it that way as well. I have gone to a neighbors and added the entry to their hosts file, and that works. Is there a way to simply go to http:// (my statis ip) and pass it the virtual name so that it finds the right virtual server? I have tried tacking "~thj" onto the ip address, but that does not work. Going to the ip address loads my default server, and that is not what I want.

I hope this makes sense, and that someone knows how to do this.

Thanks for your time in reading this.

Steven

jdMorgan

8:26 pm on Mar 17, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There are lots of ways to do it -- all mouch more complicated and expensive (time-wise) that registering a domain name. You can just use one domain (to save money) and make each test site a subdomain of that main domain.

Jim

StevenHill

8:42 pm on Mar 17, 2006 (gmt 0)

10+ Year Member



Jim,

Thanks! I have a number of domains that I can use a subdomain of to handle this. Sometimes...

Out of curiosity though, what are some of the ways to access by ip address only?

Thanks again...

Steven

jdMorgan

1:30 am on Mar 18, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



One way is to modify all of the links on all your pages to include the 'domain' as part of the URL-path.

The others are even less attractive...

Jim