• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 183
  • Last Modified:

Multisites on the same 95 OS PC

I manage some sites around the world onto different servers.
I develop cgis in perl for these sites.
Actually (@ home using 95) I've a web server (OMNI HTTP professional, very light!!!) but I've some problems.
All is runnig well if my PC name is the same of one site.

For exemple if I must manage www.pippo1.com my PC i setted to be www.pippo1.com (but I must do it everytime i reboot!!)
This to upload "as is" all cgi and try them offline.
When I go on net to try uploaded cgis I must use a proxy.
I'd like to have different site all toghether into my PC.
So I like to make aliases for the same machine.

(IE: I want to use


for my local ip.


This can be done under NT but I'd like to do it using 95.
Maybe using a local DNS demon that (when lunched offline) resolves names to the same machine.

Any ideas?Any link to watch for?

Thanks by now.
  • 4
  • 3
1 Solution
so you want to point all of those sites to the same IP address?  Why not use the hosts file?
zuppyAuthor Commented:
What have I do?
Can you explain the steps?
Find the hosts file on your PC and follow the instructions inside it.  It really is that easy.
e.g.     localhost   www.pippo1.com   www.pluto2.com   www.topolino.it   www.linus.com 

There are other commands to it but nothing you will need for what is being done.  Your system will parse this file before ever trying to contact a DNS server.


Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

zuppyAuthor Commented:
This is the host.sam file

# Copyright (c) 1994 Microsoft Corp.
# This is a sample HOSTS file used by Microsoft TCP/IP for Chicago
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
# For example:
#     rhino.acme.com          # source server
#     x.acme.com              # x client host       localhost

ok....nice....but if, after I want to joing the online www.linus.com?
(IE when I'm connected into internet)....
If I try to http to it it tray to take te local one...

Any other commands?
I can't see enything else....
Have you a link to a web page that explain that file and its commands?
Your question was that you would like to make aliases to these machines that point to your local system.  you can do that with the above.  Let me think further on your newest question ...
How about this.
Create 3 files
In hosts.lcl, set it as above.
In hosts.net,    localhost
Then, write a couple of batch files
type {path}hosts.lcl > c:\windows\hosts

type hosts.net > c:\windows\hosts

Then when you want to connect to the net, run the second batch file.  That will make your hosts file contain    localhost

When you want to do local testing, run the first batch file.  That will put in all of your local mappings.

How's them apples?

Can't help you with an online resource.  Look for one that deals with the TCP/IP microsoft test.  It is just a very simple DNS file.
zuppyAuthor Commented:
I would be great if it would work. :(
But nothing.
I've made 2 batch files and tried.
If I try to ping or traceroute to other than my machine name...NOTHING.
Any other idea?
(are u sure that EVERY time Windows 95 look@ the hosts file?)
(Are you sure that windows look@ at that file? I've tried to change and rebbot to make sure...NOTHING again)
Any ideas?
zuppyAuthor Commented:
Sorry I made a mistake (when you wrote .. > hosts i thought you forgot .sam but looking @ a whebpage for win98 it underlines to leafe extension off)
Now it works :)
And I'm happy... :P
so here your points :)

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now