Vhost Problem

Apache, Lighttpd, nginx, Cherokee
Post Reply
moxid
Posts: 4
Joined: 2003-03-06 11:42
 

Vhost Problem

Post by moxid »

hallo,

ich versuche gerade mit virtual_hosts ein paar domains einzurichten...

meine config:

NameVirtualHost xx.xx.xx.xx
<VirtualHost xx.xx.xx.xx>
ServerAdmin webmaster@domain1.de
ServerName http://www.domain1.de
DocumentRoot /usr/local/www/data-dist/
</VirtualHost>

<VirtualHost xx.xx.xx.xx>
ServerAdmin webmaster@domain2.de
ServerName http://www.domain2.de
DocumentRoot /usr/local/www/data-dist/domain2.de/
</VirtualHost>

beim aufrufen von domain2.de lande ich aber immer wieder im ordner für domain1.de

2tes problem...

beim einfügen von

TransferLog /www/domain1.de/logs/access.log

bekomme ich die folgende fehlermeldung:

Invalid command 'TransferLog', perhaps mis-spelled or defined by a module not included in the server configuration



--
gruss
christoph
dodolin
Posts: 3840
Joined: 2003-01-21 01:59
Location: Sinsheim/Karlsruhe
Contact:
 

Re: Vhost Problem

Post by dodolin »

Zum 1. Problem weiss ich nichts, ist aber halt auch schwierig, wenn du das aus-XX't...
Zum 2. Problem: Schonmal mit RTFM versucht? http://httpd.apache.org/docs/mod/mod_lo ... ransferlog Vermutlich solltest du also einfach mal das mod_log_config laden, wie es auch in der Fehlermeldung schon steht. HTH.
moxid
Posts: 4
Joined: 2003-03-06 11:42
 

Re: Vhost Problem

Post by moxid »

dodolin wrote:Zum 1. Problem weiss ich nichts, ist aber halt auch schwierig, wenn du das aus-XX't...
xx = z.B. 127.0.0.1
dodolin wrote:Zum 2. Problem: Schonmal mit RTFM versucht? http://httpd.apache.org/docs/mod/mod_lo ... ransferlog Vermutlich solltest du also einfach mal das mod_log_config laden, wie es auch in der Fehlermeldung schon steht. HTH.
mod_log_config wird geladen
dodolin
Posts: 3840
Joined: 2003-01-21 01:59
Location: Sinsheim/Karlsruhe
Contact:
 

Re: Vhost Problem

Post by dodolin »

mod_log_config wird geladen
Kannst du das z.B. über /server-info verifizieren?
Wenn dem so ist, dann würde ich höchstens noch darauf tippen, dass die Direktive vielleicht im falschen Kontext (ist nur in ServerConfig und VirtualHost zulässig) steht oder dass es vielleicht doch falsch geschrieben ist, wie in der Fehlermeldung angegeben.
dopefish
Posts: 142
Joined: 2003-02-06 12:57
Location: Karlsruhe
Contact:
 

Re: Vhost Problem

Post by dopefish »

zu problem 1:
du hast auch http://www.domain2.de als ServerName angegeben, wenn du dann nur domain2.de aufrufst landest du beim default vhost, und dieser ist der erste der definiert ist (also domain1.de)

versuch mal folgende config:

<VirtualHost xx.xx.xx.xx>
ServerAdmin webmaster@domain2.de
ServerName domain2.de
ServerAlias *.domain2.de
DocumentRoot /usr/local/www/data-dist/domain2.de/
</VirtualHost>

http://www.gewex.com/manual/vhosts/examples.html
Post Reply