[users@httpd] virtual hosts

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

 



Hi,

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
   ServerName host1.domain.at
   ServerAlias host1
   ErrorLog /local_store/web_logs/host1_error
   CustomLog /local_store/web_logs/host1_access combined
</VirtualHost>
<VirtualHost *>
   DocumentRoot /data/web/host2
   ServerName host2.domain.at
   ServerAlias host2
   ErrorLog /local_store/web_logs/host2_error
   CustomLog /local_store/web_logs/host2_access combined
</VirtualHost>

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           host1.domain.at (/etc/apache/httpd.conf:1078)
   *:*                    host2.domain.at (/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 host1.domain.at (/etc/apache/httpd.conf:1078)
 ) = 77
write(2, "*:* host2.doma"..., 82*:* host2.domain.at (/etc/apache/httpd.conf:1177)
 ) = 82
 --- SIGSEGV (Segmentation fault) @ 0 (0) ---
 +++ killed by SIGSEGV +++



Can anybody give me a hint?

Cheers
  Gerald


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