httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gerald Griessner <>
Subject [users@httpd] virtual hosts
Date Wed, 20 Jul 2005 06:20:05 GMT

I'm using Apache already for a couple of years, ...

I'm installing it on a new Machine running a brand new Debian Sarge, ...

I compiled it (apache 2.0.54),
(./configure --prefix=/opt/apache --sysconfdir=/etc/apache 
--enable-auth-dbm --enable-mime-magic --enable-expires --enable-headers 
--enable-ssl --enable-http --enable-proxy  --enable-proxy-connect 
--enable-proxy-ftp --enable-proxy-http --enable-dav --enable-cgi 
--enable-dav-fs --enable-rewrite --enable-so)
make && make install

and took the configuration from a running Apache 2.0.52.

For one or the other reason, the Virtual hosts part is not working.
NameVirtualHost *:80
<VirtualHost _default_>
    DocumentRoot /data/web/host1
    ServerAlias host1
    ErrorLog /local_store/web_logs/host1_error
    CustomLog /local_store/web_logs/host1_access combined
<VirtualHost *>
    DocumentRoot /data/web/host2
    ServerAlias host2
    ErrorLog /local_store/web_logs/host2_error
    CustomLog /local_store/web_logs/host2_access combined

When I browse to the webserver I always get the host1.

/opt/apache/bin/httpd -t
	Syntax OK

/opt/apache/bin/httpd -S
    VirtualHost configuration:
    wildcard NameVirtualHosts and _default_ servers:
    _default_:80  (/etc/apache/httpd.conf:1078)
    *:*           (/etc/apache/httpd.conf:1177)
    Segmentation fault

strace -f /opt/apache/bin/httpd -S
  write(2, "VirtualHost configuration:\n", 27VirtualHost configuration:
  ) = 27
  write(2, "wildcard NameVirtualHosts and _d"..., 49wildcard 
NameVirtualHosts and _default_ servers:
  ) = 49
  write(2, "_default_:80           host1.domai"..., 77_default_:80 (/etc/apache/httpd.conf:1078)
  ) = 77
  write(2, "*:*                    host2.doma"..., 82*:* (/etc/apache/httpd.conf:1177)
  ) = 82
  --- SIGSEGV (Segmentation fault) @ 0 (0) ---
  +++ killed by SIGSEGV +++

Can anybody give me a hint?


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message