LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-29-2002, 03:03 AM   #1
fin
LQ Newbie
 
Registered: Dec 2001
Location: MoorLands UK
Distribution: Red Hat 7.3
Posts: 27

Rep: Reputation: 15
Cool Help with Apache virtual hosting


Hi All,

Could some please help me with Apache virtual hosting that I've set it up for
testing webpages etc.. So far I have change the DocumentRoot to /export/websites,
it worked ok to view an index page. Then I change the httpd to virtual hosting,
but when I came to restart the server, it would not start, only with a [FAILED] error.
How can I debug Apache to see why it did not start ? where do I look ?

Thanks Rich


Here's few details of the Apache setup:


ServerName 192.168.0.2
DocumentRoot "/export/websites"

NameVirtualHost 192.168.1.2

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
<VirtualHost 192.168.1.2>
ServerAdmin webmaster@myhost.com
ServerName www.myhost.com
DocumentRoot /export/websites/myhost.com/www
ScriptAlias /cgi-bin/ /export/websites/myhost.com/cgi-bin/
ErrorLog /export/websites/myhost.com/logs/error.log
Transferlog /export/websties/myhost.com/logs/access.log
</VirtualHost>

<VirtualHost 192.168.1.2>
ServerAdmin webmaster@myhost.co.uk
ServerName www.myhost.co.uk
DocumentRoot /export/websites/myhost.co.uk/www
ScriptAlias /cgi-bin/ /export/websites/myhost.co.uk/cgi-bin/
ErrorLog /export/websites/myhost.co.uk/logs/error.log
Transferlog /export/websties/myhost.co.uk/logs/access.log
</VirtualHost>

[root@Deep root]# httpd -t
Syntax OK
[root@Deep root]# httpd -T
Syntax OK
[root@Deep root]# httpd -S
VirtualHost configuration:
192.168.1.2:80 is a NameVirtualHost
default server www.myhost.com
(/etc/httpd/conf/httpd.conf:1199)
port 80 namevhost www.myhost.com
(/etc/httpd/conf/httpd.conf:1199)
port 80 namevhost www.myhost.co.uk
(/etc/httpd/conf/httpd.conf:1208)
[root@Deep root]# service httpd start
Starting httpd: [FAILED]
[root@Deep root]#
 
Old 04-30-2002, 11:50 AM   #2
fin
LQ Newbie
 
Registered: Dec 2001
Location: MoorLands UK
Distribution: Red Hat 7.3
Posts: 27

Original Poster
Rep: Reputation: 15
Bumping it up !
 
  


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 Virtual Hosting abhijeetudas Linux - Networking 2 05-29-2005 05:26 AM
Apache 2.x Virtual Hosting vbfischer Linux - Software 3 04-21-2005 06:17 PM
Apache and Virtual Hosting gcobb Fedora 4 10-29-2004 01:10 AM
Virtual Hosting with apache, i think... dengi Linux - Software 1 10-26-2003 10:43 PM
Apache Virtual Hosting kmac Linux - General 2 04-12-2001 11:23 PM


All times are GMT -5. The time now is 01:53 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration