LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-07-2008, 03:19 PM   #1
atomiccomp
LQ Newbie
 
Registered: Dec 2008
Location: UK
Distribution: Debian/Ubuntu
Posts: 28

Rep: Reputation: 0
Smile Apache 2 webserver, hosting multiple websites


Hi all!
I am a newbie and have been using debian (the latest) and have managed to setup apache and it serves my 1 domain page just fine. My question is this;
How do I get apache to serve sites for other domains my server is hosting?
I have read some walk thus but I find it all a confusing!
I read a guide that talked about virtual users but I just don't get it.

Thanks for any help in advance.
 
Old 12-08-2008, 01:53 AM   #2
niknah
Member
 
Registered: Dec 2002
Location: In front of a computer
Distribution: UPS, DHL, FedEx
Posts: 466

Rep: Reputation: 38
It's VirtualHosts.


Goes something like...

Code:
<VirtualHost *:80>
ServerName xxxxxx.com
DocumentRoot /var/www/.........(where your website's folder is)
</VirtualHost>


Not sure what debian is like but if it's like ubuntu then you put the above into a file in the /etc/apache2/sites-enabled/ folder.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache - running multiple websites on one host xtra Linux - General 5 06-30-2010 05:51 AM
Single port open, multiple websites with Apache sardaukar_siet Linux - Server 4 02-12-2007 04:04 AM
Apache: hosting multiple domains fturcic Linux - Software 1 02-15-2005 06:39 PM
hosting multiple sites w/ apache pH* Linux - Networking 2 10-15-2004 04:02 PM
a forum to discuss apache / linux hosting websites? jago25_98 General 0 11-18-2003 02:47 PM


All times are GMT -5. The time now is 10:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration