You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Gerald Griessner <gg...@salzburgresearch.at> on 2005/07/20 08:20:05 UTC

[users@httpd] virtual hosts

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


Re: [users@httpd] virtual hosts

Posted by Davide Bianchi <da...@onlyforfun.net>.
Gerald Griessner wrote:
>    Segmentation fault

It looks like you have a broken binary or a broken library.
Did you tried to recompile it?

Davide


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


[users@httpd] Re: virtual hosts

Posted by Joost de Heer <sa...@xs4all.nl>.
> NameVirtualHost *:80
> <VirtualHost _default_>

<VirtualHost *:80>

> <VirtualHost *>

<VirtualHost *:80>

Joost


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