Web Hosting Talk







View Full Version : How to access virtual domains using the IP


ML2008
06-22-2001, 06:07 AM
How can I access my virtual domains using the IP before the domain names are pointed to the server?
I need to find out so that I can test the sites before I tranfer them to the new server.

I have created user names and have set-up the domains on the server.

http://12.12.34.3/~username/ or
http://12.12.34.3/~damainname/ or...?

I have tried many ways and can't find out how to! :confused:

davidb
06-22-2001, 06:27 AM
For me, on apache, just go to the ip, it would take me to the main dir set in the config, the general dir, mine was /home/htdocs/ my domains were in /home/htdocs so it listed the name of the folders. That might a tad confusing but hopfully it will help

ML2008
06-22-2001, 06:36 AM
I just want to know how to check on the website, ie I have an IP of 1.1.1.1 and a site abc.com with a user name dfg. What would I have to type in the browser to get to the site?

http://...?


Thanks

Honu
06-22-2001, 06:43 AM
Aloha
when you say you want to transfer them to the new server
do you mean that they are on a test server ??
is this a home server or internal network??
the ip 1.1.1.1
seems you have this set up as your own ip on a internal network ??
is this the case ??
any more info or are you just using this as a place holder ??
like ###.###.###.### for your IP numbers ???
is this IP only for that domain or are you using name based ?

what happens when you type in
http://ipnumber
do not use www. or any ending .com .net or anything

http://1.1.1.1
if you were using those as examples

eriky
06-22-2001, 07:36 AM
I know what you mean.
I usually make a subdomain, like beta.blablabla.com, and when everything is working I change the host to www instead of beta.
Sometimes I'm testing for more than a week so it's worth the trouble.

Eagle_
06-22-2001, 07:40 AM
You can do this with an AliasScript and then access it through the main virtual domain....

nozol
06-22-2001, 08:02 AM
If you are using name based hosting, i.e. multiple domains share the same ip, then you will not be able to access any of your domains using the sgared ip unless you make changes to httpd.conf.

Ahmed

ML2008
06-22-2001, 08:27 AM
Thanks.......I guess I will get more IP's :stickout

eriky
06-22-2001, 08:49 AM
That's the easiest solution ;)

Chicken
06-22-2001, 09:32 AM
Originally posted by nozol
If you are using name based hosting, i.e. multiple domains share the same ip, then you will not be able to access any of your domains using the sgared ip unless you make changes to httpd.conf.

Ahmed

-which isn't difficult, and can be found by searching the forum. If I had more time I'd look for you, but I'm about to drive 5 hours... you don't need more IPs. One quick change and you'll achieve exactly what you want.