Default server is overridden by first VirtualHost

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux