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 my PC i setted to be (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.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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 

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.


Bootstrap 4: Exploring New Features

Learn how to use and navigate the new features included in Bootstrap 4, the most popular HTML, CSS, and JavaScript framework for developing responsive, mobile-first websites.

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:
#          # source server
#              # x client host       localhost

ok....nice....but if, after I want to joing the online
(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,    localhost
Then, write a couple of batch files
type {path}hosts.lcl > c:\windows\hosts

type > 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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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 :)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows OS

From novice to tech pro — start learning today.