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]#