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

www.pippo1.com
www.pluto2.com
www.topolino.it
www.linus.com

for my

192.168.1.1 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.
zuppyAsked:
Who is Participating?
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.

david_rCommented:
so you want to point all of those sites to the same IP address?  Why not use the hosts file?
0
zuppyAuthor Commented:
Exactely...
What have I do?
Can you explain the steps?
0
david_rCommented:
Sure,
Find the hosts file on your PC and follow the instructions inside it.  It really is that easy.
e.g.
127.0.0.1     localhost
192.168.1.1   www.pippo1.com 
192.168.1.1   www.pluto2.com 
192.168.1.1   www.topolino.it 
192.168.1.1   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.

HTH

David
0
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

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:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

127.0.0.1       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?
Thankyou
0
david_rCommented:
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
hosts.lcl
hosts.net
hosts
In hosts.lcl, set it as above.
In hosts.net, 127.0.0.1    localhost
Then, write a couple of batch files
1)
type {path}hosts.lcl > c:\windows\hosts

2)
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
127.0.0.1    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.
0

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?
0
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 :)
0
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.