Hello,
I apologise in advance if this is a stupid question, I am a newbe
with both Linux and Apache.
I am unable to configure Apache to use virtual hosts under Fedora.
httpd -S gives the following:
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:80 is a NameVirtualHost
default server (/usr/local/apache2/conf/httpd
port 80 namevhost (/usr/local/apache2/conf/ht
port 80 namevhost (/usr/local/apache2/conf
Syntax OK
The virtual host section of httpd.conf is:
NameVirtualHost *:80
#
# 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.
#
# As this host is listed first, it is the default
<VirtualHost *:80>
ServerName ServerAdmin drder@robertsontheweb.co.uk
DocumentRoot /#ServerAlias robertsontheweb.co.uk *.robertsontheweb.co.uk
</VirtualHost>
<VirtualHost *:80>
ServerName DocumentRoot /#ServerAlias *.queenscrosschurch.org.uk
</VirtualHost>
Yet both websites are displaying the robertsontheweb site. So the DNS
servers seem to be pointing to the correct place. The result is
the same with ServerAlias in or out. I have read as much as I can find on the web, including the faq recommened elsewhere in this forum, but to no avail!
Any help would be very much appreciated!
Dave Roberts
I apologise in advance if this is a stupid question, I am a newbe
with both Linux and Apache.
I am unable to configure Apache to use virtual hosts under Fedora.
httpd -S gives the following:
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:80 is a NameVirtualHost
default server (/usr/local/apache2/conf/httpd
port 80 namevhost (/usr/local/apache2/conf/ht
port 80 namevhost (/usr/local/apache2/conf
Syntax OK
The virtual host section of httpd.conf is:
NameVirtualHost *:80
#
# 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.
#
# As this host is listed first, it is the default
<VirtualHost *:80>
ServerName ServerAdmin drder@robertsontheweb.co.uk
DocumentRoot /#ServerAlias robertsontheweb.co.uk *.robertsontheweb.co.uk
</VirtualHost>
<VirtualHost *:80>
ServerName DocumentRoot /#ServerAlias *.queenscrosschurch.org.uk
</VirtualHost>
Yet both websites are displaying the robertsontheweb site. So the DNS
servers seem to be pointing to the correct place. The result is
the same with ServerAlias in or out. I have read as much as I can find on the web, including the faq recommened elsewhere in this forum, but to no avail!
Any help would be very much appreciated!
Dave Roberts