LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 02:19 PM   #1
atomiccomp
Member
 
Registered: Dec 2008
Location: UK
Distribution: Debian/Ubuntu
Posts: 41

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, 12: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



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 04:51 AM
Single port open, multiple websites with Apache sardaukar_siet Linux - Server 4 02-12-2007 03:04 AM
Apache: hosting multiple domains fturcic Linux - Software 1 02-15-2005 05:39 PM
hosting multiple sites w/ apache pH* Linux - Networking 2 10-15-2004 03:02 PM
a forum to discuss apache / linux hosting websites? jago25_98 General 0 11-18-2003 01:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:57 AM.

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
Open Source Consulting | Domain Registration