LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 06-19-2007, 08:44 PM   #1
fiona333
Member
 
Registered: May 2007
Posts: 35

Rep: Reputation: 15
setting up domain thru virtualhost on apache


Hi,
I want to set up new domain names using VirtualHost. I need to add new domains to my IP (which already has multiple domains set up by previous system-admin guy). He has separate config files for each of the current domain names, so I know I need to set up one of these for each new domain name and put the VirtualHost directives in here as below.

<VirtualHost xxxx.xxx.xxxx.xxxx:xx
ServerAdmin xxx@website.com
DocumentRoot /usr/local/apache/
ServerName www.domain-name.com
ServerAlias domain-name.com *.domain-name.com

ErrorLog /usr/local/apache/logs/error_log
CustomLog /usr/local/apache/logs/access_log common

</VirtualHost>

The previous sys admin said I need to create the error logs and do a bunch of other things in order to not bring down the whole server, but I can not find documentation on the web to support this. Any ideas how I should proceed???

Thanks for any help you can give me!!!
 
Old 06-20-2007, 07:31 AM   #2
ScooterB
Member
 
Registered: Sep 2003
Location: NW Arkansas
Distribution: Linux Redhat 9.0, Fedora Core 2,Debian 3.0, Win 2K, Win95, Win98, WinXp Pro
Posts: 344

Rep: Reputation: 31
You're on the right track. The way that I do this is to set up the needed files within the "owners" home directory. That way, when they need to change the web pages, they can log in via secure ftp or however you want them to. You'll just have to make sure that they and apache have access to the directories (read/write permission, etc). As far as the log files, just make sure that the folders exist in the path that you configure in httpd.conf. You don't have to put anything in them just create them and apache will do the rest. Give it a try and then repost if you have problems.

P.S. - you will have to do the creation/configuration with enough authority (i.e., root) or you won't be able to change the file permissions etc.
 
Old 06-20-2007, 05:27 PM   #3
fiona333
Member
 
Registered: May 2007
Posts: 35

Original Poster
Rep: Reputation: 15
Thanks ScooterB...I'll let you if I come across any problems.
 
  


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 - VirtualHost setting not working? Splenden Linux - Server 9 01-14-2007 12:15 PM
Apache -VirtualHost davidhk Debian 7 08-19-2005 12:33 PM
Setting up domain name in apache ksgill Linux - Newbie 4 04-01-2005 09:45 AM
Setting Apache Virtualhost Default Document? Seventh Linux - Software 1 03-21-2005 10:47 AM
setting virtualhost without IP acid_kewpie Linux - Networking 3 12-10-2002 07:45 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration