httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Basil Mohamed Gohar <abu_huray...@hidayahonline.org>
Subject [users@httpd] Default server is overridden by first VirtualHost
Date Fri, 01 May 2009 14:44:28 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have my local machine configured as the following:

beta <- default server
x <- vhost1 (with aliases y & z)

When I access the webserver using the name "beta", it loads x, which is
the first VirtualHost.

The output of apachectl -S is as follows:



[basilgohar@beta ~]$ apachectl -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:80                   is a NameVirtualHost
         default server x (/etc/httpd/conf/httpd.conf:1005)
         port 80 namevhost x (/etc/httpd/conf/httpd.conf:1005)
Syntax OK



Some lines from httpd.conf:

###########################################################
Listen 80
ServerName beta:80 # this is in the "default" server config
###########################################################

#
# Use name-based virtual hosting.
#
NameVirtualHost *:80

<VirtualHost *:80>
    ServerName x
    ServerAlias y z
    DocumentRoot /home/basilgohar/Public/www/app
</VirtualHost>




Can anyone help me get my default server back?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkn7CsUACgkQaVgOCFr0s2LO4QCfQl6ZJWW1w7lWMJBnnGdpH3rJ
e6sAn18c+l7Ivb33HdspxS8raBZgKnm5
=E3ND
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message