how to host 2 different web sites on 1 computer

I have a static IP and 2 different names: www.mysite1.com www.mysite2.com.

Is it possible to host them on one IP ?.
iskibinskaAsked:
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.

dougstechCommented:
Yep, this is what I use and it works great for multiple domains on the same IP. Has a bunch of other stuff too FTP server, email server...

http://www.cmfperception.com/liteserve.html
0
iskibinskaAuthor Commented:
But it is only for windows ?

Do I need to install a special software on linux to do it ?

0
techbieCommented:
You have static ip right..

(1) configure a DNS server in your windows machine.
(2) then in godaddy or whereever u have bought the domain name, update the name server to your new dns server.
(3) now in your machine, configure the dns server to point to the required hard disk location
(4) You also configure your local webserver (apache or IIS) to serve the webpages correctly.

You can get  tutorials to get the configuration instruction of a DNS server in windows xp.

If you have a linux machine, it is very straight forward. Same process as windows. setting up the dns server and then configuring it.

Look this link
http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch18_:_Configuring_DNS

0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

fosiul01Commented:
hi
to host your own web server,

you have to configure dns ( its not manditory) but its good have have control of your own dns server.

for this follow : http://fosiul.co.uk/KnowledgeCategories.php?CID=35
primary and secondary.

if you do dns management i would of suggest to use 2 internet line with 2 public Ip and 2 seperate server.
one is for master or one is for slave ( one server would be enough for a while)

after completing dns server setup

you need to configure apache for web sites

or you can follow this site : http://www.howtoforge.com/creating-your-own-webserver-with-bind-and-apache-centos5

for setting up dns and apache

let me know if you need further help
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
frandshansenCommented:
As far as I can see this question is regarding the webserver.

Using Linux it is pretty easy to host multiple websites. Depending on your distribution you need to locate the configuration of your apache. Typically this is /etc/apache2 or /etc/httpd or just /etc/apache if you run 1.3 version of Apache.

I cannot remember the default locations for this on SuSE, but all you need to do is add virtual hosts.

Add this to your config:

    <VirtualHost *>
    ServerName www.yourdomain.com
    DocumentRoot /path/to/www/files
    </VirtualHost>

for each domain you want to host. If you want it also to respond to *.domain.com do this:

    <VirtualHost *>
    ServerName www.yourdomain.com
    ServerAlias *.yourdomain.com
    DocumentRoot /path/to/www/files
    </VirtualHost>
0
iskibinskaAuthor Commented:
frandshansen,

Looks pretty easy, so I don't need to configure and setup a DNS server ?
0
fosiul01Commented:
if you dont configure your dns server, then from domain control panel, you have to define which one is your WEbserver

you wil have to define A record from your domain control panel.
0
iskibinskaAuthor Commented:
fosiul01:

I host this server, does it change anything ?

Domain Control Panel - what is this ? Is it something whihc comes with DNS  server?

0
fosiul01Commented:
when some one will type www.yourdomain.com , how all the request will come to your webserver ( Ip : 78.168.268.58) so you will have to tell to world that My web server ip is :  78.168.268.58

this is called A record

now if you dont configure your server as Dns server, then from where you bought your domain, they must of gave you domain control panel. from domon control panel, you will have to define what is the IP for your web server.

in this case, you will use your domain providing company's dns server but after definning A record , all trafiq related to your web request will forward to your own Ip

does it make sence ??
0
dougstechCommented:
My solution is a windows program and does not require any special configuration.
0
iskibinskaAuthor Commented:
but i am going to register those 2 domanins:
www.mysite1.com
www.mysite2.com will be registered let's say at godaddys com and they will have the same
IP's address. I have DNS servers which were given by my ISP

so now, it is the matter for apache to know which site to display, depending on which site is requested.

Correct me If I am wrong, but I don't think that I need DNS server. Right now I have only
www.mysite1.com working like this, I need to add www.mysite2.com
0
dougstechCommented:
You will give the domain registrar your IP address, and in the server (http://www.cmfperception.com/liteserve.html) you will give the server the paths to the different sites. When the browser requests your website, the server will send the site requested (whatever domain they went to).

No DNS configuration is necessary.
0
fosiul01Commented:
From your comment, your ISP is responsible for your dns management. is  not it ??

ok , supose, you have registered domain from godaddy. so, initally, godady is the responsible for your Dns management of your domain.

by defult, it would be, ns1.godaddy.com , ns2.godaddy.com

now, you might change the nameserver from ns1.godaddy to ns1.yourisp.com and ns2.godady.com to ns2.yourisp.com

so now your isp is responsible for your domain.

for your first doman www.mysite.1.com : in your isp's dnsserver its saying A record for www.mysite1.com is the IP of your webserver.

now when you will regiseter another domain, same way you did for First domain, you have to do the samething for 2nddomain.
since your isp is responsible for your dns management, you will have to tell them, change the A Record of www.mysite1.com

thats it.

and since you are responsible for only web server, just configure apace and enter the 2nd domain information as other people and i have sent the article from howto : http://www.howtoforge.com/creating-your-own-webserver-with-bind-and-apache-centos5-p2
0
fosiul01Commented:
Hi , I never object to any ones accepted solution solution, but

you will have to explain me, why you have accepted dougstech solution ??

his solution is nothing to do about what you have asked here and what we were trying to help you
0
dougstechCommented:
how does my solution have nothing to do?
sure, its a windows program, and not linux, but thats what WINE is for. you guys are going way over what actually needs to be done, and can be done in a much simpler way.
0
fosiul01Commented:
You didnot understand why i made the objection. its nothing to do with your solution, its the objection about who accepted your solution

if you look at his question, he asked how to configure apache for hosting websites

and i belived the solution we tryed to give him thats the accurate  solution for configuring apache and the solution for his problem
but he accepted a solution which he didnot asked.

he didnot ask for which software would be easy for web server configuraiton, he asked how to setup apache for websites, we were giving our time to help him how to configure apache and trying to make him understand how this works

but end of the day he accepted something which he diddnot wanted in first place

hope i made sense
0
iskibinskaAuthor Commented:
Hi, where can I see the history of my grading. It is possible that I might have made a mistake for which I am sorry , my intention was to grade fosiul01  and  the person who gave a snippet for apache configuration.
0
techbieCommented:

Hi there,

I too feel that the points be awarded to fosiul01. or could be shared between fosiul01 and frandshansen:


techbie
0
iskibinskaAuthor Commented:
yes, i agree that it should be shared between  fosiul01 and frandshanses.

How can it be changed now ?
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
Web Servers

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.