-
April 22nd, 2005, 10:00 AM
#1
Junior Member
how do i configure multiple websites on a single server
well that is my question and another thing do i need to install apache to make multiple websites work
i get a message like this cannot connect to www.*****************.com please cheak etc/hosts
=========== =============
log in anyway | |try again |
=========== ============
i think that about explains it
and yes what is the advantage of the directory being home/blahblah
and usr/****/**** or something like that
and may be i havent checked posts about chrooting but may be i will post it some other time
=;
you look up and a bird shits in the sky ,you fall on your knees and thank god that buffalos dont fly.
-
April 22nd, 2005, 10:21 AM
#2
Ummm
First of all ... your post should be a bit more clear about what it is you exactly want , have or want to get done.
As what I can understand about what it is you want is that you have a server running Apache or want to run Apache if this is the case then the explination I found by googling your question and looking for about 2 seconds will get you on your way of configuring the server to host multiple websites. you can find the rest of the article here
Hosting multiple websites
If you plan to host multiple websites on your web server, you first need to create a virtualhost directive for the default site. The ServerName and DocumentRoot directives should be the same as the Global directives listed higher up in the config file. The format of a typical virtual host can be found below:
# www.defaultsite.com
<VirtualHost *> #asterisk uses all IP addresses
ServerName www.mysite.com
ServerAlias www.yoursite.com www.his-site.com #optional
DocumentRoot /var/www/html
</VirtualHost>
Below are all the common directives you may use for the rest of your virtual hosts:
# www.site1.com
<VirtualHost ip.address.goes.here >
ServerAdmin webmaster@site1.com #optional
ServerName www.site1.com
ServerAlias www.site1.net www.site1.org #optional
ErrorDocument 404 /index.html ErrorDocument 403 /index.html ErrorLog logs/error_log #optional
CustomLog logs/access_log combined #optional
DocumentRoot /home/bob/HTML
</VirtualHost>
If you are trying to host multiple website on an IIS this can be done by using the Hostheaders.
But first give us more information ... or better yet ...use THIS to find your answers ... if then there is something you can't understand the guys here will be happy to help
Gr33tz,
C.
Back when I was a boy, we carved our own IC's out of wood.
-
April 22nd, 2005, 01:27 PM
#3
Looks to me that the problem is more DNS related, or that you don't have a web server running at all. If apache was running and DNS pointed to the box, you would atleast get the default web page, not an error message. I think you're problem is not what you think it is.
-
April 22nd, 2005, 02:01 PM
#4
Are you running behind a router and if so, do you have port forwarding set for the server on that router? Yes, you can have two web sites on one server, you just need to have the dns (forward and reverse lookup zones) set for each web address and have the correct path set for each. Also make sure you have a static IP address, also make sure the Web name provider has your IP address, and to name your first web page index. Apache is not required to run a web site. IIS is really all that you need. Windows XP comes with IIS but only allows I think 10 people on your site at a time.
S25vd2xlZGdlIGlzIHBvd2VyIQ
-
January 7th, 2006, 06:48 AM
#5
Junior Member
i had a linux box and i just wanted to learn how to configure apache. I am a student not a data center manager or a computer science student slacker turned system adminstrator. It was posted by me just to gain knowledge but thank you for your participation and Cemetric please check you p.m . and i wish all of you a belated happy new year 2006
you look up and a bird shits in the sky ,you fall on your knees and thank god that buffalos dont fly.
-
January 7th, 2006, 04:14 PM
#6
man this is happening often..people posting when its flashing and a year old. um ill let the others deal with this one..this makes 5 today/few hours of yesterday iv seen this.
"When in doubt, use Brute Force."
Never argue with an idiot. They'll drag you down to their level, then beat you with experience.
-
January 7th, 2006, 04:24 PM
#7
Mandrake, maybe check to see whom started the thread..
Now look at the person that you negged..
maybe slow down with the trigger finger..
I don't blame the dude for re-posting in a thread that he/she created some time back, well a few months.
I'd rather this, then start up a whole new thread about the same topic..
cheers
front2back
-
January 7th, 2006, 04:26 PM
#8
There is only one constant, one universal, it is the only real truth: causality. Action. Reaction. Cause and effect...There is no escape from it, we are forever slaves to it. Our only hope, our only peace is to understand it, to understand the 'why'. 'Why' is what separates us from them, you from me. 'Why' is the only real social power, without it you are powerless.
(Merovingian - Matrix Reloaded)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|