PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Virtual Hosts



pinguin007
07.05.03, 16:22
Hallo,

so ich weiss jetzt einfach nicht mehr weiter.
Habe ein locales Netz mit einem Apache Webserver. Der Server läuft wunderbar, die Virtuelen Hosts klappen aber nur wenn ich sie über verschiedene Ports anspreche.
Als Beispiel:

192.168.120.6 -> localhost 192.168.120.6:8080 -> meine webseite und so weiter und weiter....

Ich will aber jetzt die Webseiten auf verschiedenen IP Adressen haben.

Also auf 192.168.120.6 -> localhost (bleiben)
aber dann will ich z.B auf 192.168.120.10 -> soll meine Webseite drauf...

Habe schon alle möglichen Sachen durchprobiert ob Namensbasierte Hosts oder IP basierte Host nichts will klappen.
Kann mir dann einer von euch weiterhelefen, wäre euch sehr dankbar!

Habe Apache/1.3.20 drauf...

gruss
pinguin007

madnobody
07.05.03, 16:38
hi,

hast du einen name-server laufen?
wenn nicht dann solltest du den noch kunfigurieren.
und das locale netz mit einrichten

in der httpd.conf den globalen servername auskommentieren.

und einfach am ender der datei die virtualhosts eintragen.
namevirtualhost 192.168.120.6
<VIRTUALHOST host1.local.priv>
.. hier die normale konfiguration

</VIRTUALHOST>

wenn du willst das er auf mehrere ips reagiert must du ihm die mit "LISTEN 192.168.120.10"
konfigurieren.

ich wuerde aber die dns.variante vorziehen.

cu

majobu
07.05.03, 16:41
Ich denke mal das du vergessen hast deinem Server genau diese anderen IPs zu verpassen.... Eine Netzwerkkarte und mehrere IPs funktioniert wunderprächtig :)

die Devices lauten dann eth0, eth0:0, eth0:1, eth0:2 etc

Stichwort: ip alias

So... und dann brauchst du nur noch deinen Webserver drauf zu konfigurieren (VHosts etc)

Gruss
Majobu

pinguin007
07.05.03, 16:43
Danke für die schnelle hilfe....
Habe es mir schon fast gedacht....
Ich will oder brauche keinen DNS Server .... geht es denn nicht ohne...??
Es muss doch möglich sein oder???

gruss
pinguin007

pinguin007
07.05.03, 16:45
Hi, majobu

meinst du die einträge in der /etc/hosts!
Wenn ja dann habe ich dies schon getann. Oder habe ich das falsch verstanden!

gruss
pinguin007

madnobody
07.05.03, 16:48
hi,

du must ein paar virtuelle netzwerkkarten mit den ipadressen hocfahren.

ifconfig eth0:0 192.168.120.32
ifconfig eth0:1 192.168.120.33
...

cu

majobu
07.05.03, 16:57
Ne nicht ganz so... das wäre dann der zweite Schritt. Ich kann dir leider nicht sagen wie das beim Yast funktioniert (hast du SuSE?), aber wenn du



ifconfig eth0:1 192.168.1.2 netmask 255.255.255.0


anwendest, dann bekommst du ein weiteres Ethernet-Device mit dem Namen eth0:1.
Mach mal danach ein ifconfig, dann siehst du was ich meine.

Und wenn das funktioniert, dein Webserver entsprechend konfiguriert ist, dann kannst du meinetwegen auch noch /etc/hosts entsprechend editieren.

Auf so einem ähnlichen Weg habe ich hier mein Netz mit 23 Servern in ein neues Netz migriert.... praktisch ohne Ausfall!

Schau mal hier:

http://www.linuxfaq.de/f/cache/251.html

Gruß
Majobu

pinguin007
07.05.03, 17:16
Oh man danke....
Hammer so einfach.... vielen Dank euch beiden....
Könntet ihr mir mal sagen woher ihr die Info habt!

gruss
pinguin007

majobu
07.05.03, 19:27
viel lesen und sich trauen auch einmal eine "blöde" Frage zu stellen :D

Raytheon
10.05.03, 22:36
Also bei mir funkz das nicht...

Ich hab folgendes gemacht:
ifconfig eth0:1 192.168.0.10 netmask 255.255.255.0


und in der httpd.conf hab ich folgendes verändert.
NameVirtualHost 192.168.0.10
Listen 192.168.0.10:80

<VirtualHost 192.168.0.10>
NameVirtualHost 192.168.0.10
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /usr/local/httpd/htdocs2
ServerName dummy-host.example.com
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>


Und beim starten des apache (apachectl start) bekomme ich folgende Fehlermeldung:
[Sat May 10 22:44:48 2003] [warn] NameVirtualHost 192.168.0.9:80 has no VirtualHosts
[Sat May 10 22:44:48 2003] [warn] NameVirtualHost 192.168.0.10:80 has no VirtualHosts
/usr/sbin/apachectl start: httpd could not be started

pinguin007
11.05.03, 00:02
Hi,

das ist nicht mehr nötig "NameVirtualHost 192.168.0.10 "
und das auch nicht "Listen 192.168.0.10:80 "
Außerdem brauchst du denn 80 Port nicht angeben das ist Standart!


und dann müsste es laufen!

gruss
pinguin

Raytheon
11.05.03, 08:26
funkz leider trotzdem nicht...

Ich hab in der httpd.conf jetzt das stehen:
...
<VirtualHost 192.168.0.10>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /usr/local/httpd/htdocs2
ServerName dummy-host.example.com
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>
...


Und die Fehlermeldung bekomme ich:
[Sun May 11 08:36:42 2003] [warn] NameVirtualHost 192.168.0.9:80 has no VirtualHosts
/usr/sbin/apachectl start: httpd could not be started


Auf 192.168.0.9 ist der normale Webserver.

pinguin007
11.05.03, 12:18
Hat denn noch ein anderer Rechner die gleiche IP? den dann ist es nicht möglich?
Aber so muss es funktionieren....
Welche version hast du den?

gruss
pinguin

red
11.05.03, 12:58
Hallo,

das Problem liegt wahrscheinlich an der Einstellung "NameVirtualHost" ´, diese befindet sich kurz über den VHosts. Stell diese einfach mal von

NameVirtualHost 192.168.0.9:80

auf

NameVirtualHost *

Grüsse

Philipp

Raytheon
11.05.03, 14:00
@pinguin007:
Der PC hat die IP 192.168.0.9(eth0) und 192.168.0.10(eth0:1), sonst hat im Netzwerk kein PC diese IP's.
Version: SuSE 8.0

@p.pfister
Das hab ich jetzt gemacht und bekomme folgende Fehlermeldung:
[Sun May 11 14:11:38 2003] [warn] NameVirtualHost 192.168.0.9:80 has no VirtualHosts
[Sun May 11 14:11:38 2003] [warn] NameVirtualHost *:80 has no VirtualHosts
/usr/sbin/apachectl start: httpd could not be started

red
11.05.03, 16:43
Leider hast du meine Anweisungen nicht befolgt ;)

Du solltest die zeile ändern und "anhängen" außerdem hast du an * noch ein :80 drangehängt.

Hoffe, dass es dann funktioniert.

Grüsse

Philipp

Raytheon
11.05.03, 19:01
Eigentlich hab ich deinen Anweisungen befolgt und beim "NameVirtualHost *" hing auch kein ":80" dran.

Aber jetzt poste ich mal meine ganze httpd.conf: :)

ServerType standalone

ServerRoot "/usr/local/httpd"

LockFile /var/lock/subsys/httpd/httpd.accept.lock

PidFile /var/run/httpd.pid

ScoreBoardFile /var/run/httpd.scoreboard

Timeout 300

KeepAlive On

MaxKeepAliveRequests 100

KeepAliveTimeout 15

MinSpareServers 1
MaxSpareServers 1

StartServers 1

MaxClients 150

MaxRequestsPerChild 0

LoadModule mmap_static_module /usr/lib/apache/mod_mmap_static.so
LoadModule vhost_alias_module /usr/lib/apache/mod_vhost_alias.so
LoadModule env_module /usr/lib/apache/mod_env.so
LoadModule define_module /usr/lib/apache/mod_define.so
LoadModule config_log_module /usr/lib/apache/mod_log_config.so
LoadModule agent_log_module /usr/lib/apache/mod_log_agent.so
LoadModule referer_log_module /usr/lib/apache/mod_log_referer.so
LoadModule mime_magic_module /usr/lib/apache/mod_mime_magic.so
LoadModule mime_module /usr/lib/apache/mod_mime.so
LoadModule negotiation_module /usr/lib/apache/mod_negotiation.so
LoadModule status_module /usr/lib/apache/mod_status.so
LoadModule info_module /usr/lib/apache/mod_info.so
LoadModule includes_module /usr/lib/apache/mod_include.so
LoadModule autoindex_module /usr/lib/apache/mod_autoindex.so
LoadModule dir_module /usr/lib/apache/mod_dir.so
LoadModule cgi_module /usr/lib/apache/mod_cgi.so
LoadModule asis_module /usr/lib/apache/mod_asis.so
LoadModule imap_module /usr/lib/apache/mod_imap.so
LoadModule action_module /usr/lib/apache/mod_actions.so
LoadModule speling_module /usr/lib/apache/mod_speling.so
# mod_userdir will be included below by SuSEconfig if HTTPD_SEC_PUBLIC_HTML=yes
LoadModule alias_module /usr/lib/apache/mod_alias.so
LoadModule rewrite_module /usr/lib/apache/mod_rewrite.so
LoadModule access_module /usr/lib/apache/mod_access.so
LoadModule auth_module /usr/lib/apache/mod_auth.so
LoadModule anon_auth_module /usr/lib/apache/mod_auth_anon.so
LoadModule dbm_auth_module /usr/lib/apache/mod_auth_dbm.so
LoadModule db_auth_module /usr/lib/apache/mod_auth_db.so
LoadModule digest_module /usr/lib/apache/mod_digest.so
LoadModule proxy_module /usr/lib/apache/libproxy.so
LoadModule cern_meta_module /usr/lib/apache/mod_cern_meta.so
LoadModule expires_module /usr/lib/apache/mod_expires.so
LoadModule headers_module /usr/lib/apache/mod_headers.so
LoadModule usertrack_module /usr/lib/apache/mod_usertrack.so
LoadModule unique_id_module /usr/lib/apache/mod_unique_id.so
LoadModule setenvif_module /usr/lib/apache/mod_setenvif.so
<IfDefine DUMMYSSL>
LoadModule ssl_module /usr/lib/apache/libssl.so
</IfDefine>

Include /etc/httpd/suse_loadmodule.conf

ClearModuleList
AddModule mod_mmap_static.c
AddModule mod_vhost_alias.c
AddModule mod_env.c
AddModule mod_define.c
AddModule mod_log_config.c
AddModule mod_log_agent.c
AddModule mod_log_referer.c
AddModule mod_mime_magic.c
AddModule mod_mime.c
AddModule mod_negotiation.c
AddModule mod_status.c
AddModule mod_info.c
AddModule mod_include.c
AddModule mod_autoindex.c
AddModule mod_dir.c
AddModule mod_cgi.c
AddModule mod_asis.c
AddModule mod_imap.c
AddModule mod_actions.c
AddModule mod_speling.c
# mod_userdir will be included below by SuSEconfig if HTTPD_SEC_PUBLIC_HTML=yes
AddModule mod_alias.c
AddModule mod_rewrite.c
AddModule mod_access.c
AddModule mod_auth.c
AddModule mod_auth_anon.c
AddModule mod_auth_dbm.c
AddModule mod_auth_db.c
AddModule mod_digest.c
AddModule mod_proxy.c
AddModule mod_cern_meta.c
AddModule mod_expires.c
AddModule mod_headers.c
AddModule mod_usertrack.c
AddModule mod_unique_id.c
AddModule mod_so.c
AddModule mod_setenvif.c
<IfDefine DUMMYSSL>
AddModule mod_ssl.c
</IfDefine>



Include /etc/httpd/suse_addmodule.conf



ExtendedStatus On


<IfModule mod_dav.c>
DavLockDB /var/lock/DAVLock
</IfModule>


<IfModule mod_include.c>
XBitHack on
</IfModule>

Port 80

<IfDefine SSL>
Listen 80
Listen 443
</IfDefine>

User wwwrun
Group nogroup

ServerAdmin root@linux.local

ServerName linux.airbase.at

DocumentRoot "/usr/local/httpd/htdocs"

<Directory />
AuthUserFile /etc/httpd/passwd
AuthGroupFile /etc/httpd/group

Options -FollowSymLinks +Multiviews
AllowOverride None

</Directory>


<Directory "/usr/local/httpd/htdocs">

Options Indexes -FollowSymLinks +Includes MultiViews

AllowOverride None

Order allow,deny
Allow from all



<IfModule mod_dav.c>
DAV Off
</IfModule>


<Files /usr/local/httpd/htdocs/index.htm*>
Options -FollowSymLinks +Includes +MultiViews
</Files>

<Files test.php3>
Order deny,allow
deny from all
allow from localhost
</Files>

</Directory>

<IfModule mod_dir.c>
DirectoryIndex index.html
</IfModule>

AccessFileName .htaccess

<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>

UseCanonicalName on

<IfModule mod_mime.c>
TypesConfig /etc/httpd/mime.types
</IfModule>

DefaultType text/plain

<IfModule mod_mime_magic.c>
MIMEMagicFile /etc/httpd/magic
</IfModule>

HostNameLookups off



<IfModule mod_backhand.c>
<Location "/backhand/">
SetHandler backhand-handler
</Location>
</IfModule>


ErrorLog /var/log/httpd/error_log

LogLevel warn

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

CustomLog /var/log/httpd/access_log common


ServerSignature On


<IfModule mod_alias.c>

Alias /icons/ "/usr/local/httpd/icons/"

<Directory "/usr/local/httpd/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

Alias /manual/ "/usr/local/httpd/htdocs/manual/"

<Directory "/usr/local/httpd/htdocs/manual">
Options Indexes FollowSymlinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

ScriptAlias /cgi-bin/ "/usr/local/httpd/cgi-bin/"

<IfModule mod_perl.c>
ScriptAlias /perl/ "/usr/local/httpd/cgi-bin/"
ScriptAlias /cgi-perl/ "/usr/local/httpd/cgi-bin/"
</IfModule>

<Directory "/usr/local/httpd/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

</IfModule>




<Location /cgi-bin>
AllowOverride None
Options +ExecCGI -Includes
SetHandler cgi-script
</Location>


<IfModule mod_perl.c>
Perlrequire /usr/include/apache/modules/perl/startup.perl
PerlModule Apache::Registry


<Location /perl>
SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
PerlSendHeader On
</Location>


<Location /cgi-perl>
SetHandler perl-script
PerlHandler Apache::PerlRun
Options ExecCGI
PerlSendHeader On
</Location>

</IfModule>


<IfModule mod_autoindex.c>

IndexOptions FancyIndexing


AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*

AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core

AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^

DefaultIcon /icons/unknown.gif

AddDescription "GZIP compressed document" .gz
AddDescription "tar archive" .tar
AddDescription "GZIP compressed tar archive" .tgz

ReadmeName README
HeaderName HEADER

IndexIgnore .??* *~ *# RCS CVS *,v *,t

</IfModule>
<IfModule mod_mime.c>

AddEncoding x-compress Z
AddEncoding x-gzip gz tgz

AddLanguage da .dk
AddLanguage nl .nl
AddLanguage en .en
AddLanguage et .ee
AddLanguage fr .fr
AddLanguage de .de
AddLanguage el .el
AddLanguage he .he
AddCharset ISO-8859-8 .iso8859-8
AddLanguage it .it
AddLanguage ja .ja
AddCharset ISO-2022-JP .jis
AddLanguage kr .kr
AddCharset ISO-2022-KR .iso-kr
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddCharset ISO-8859-2 .iso-pl
AddLanguage pt .pt
AddLanguage pt-br .pt-br
AddLanguage ltz .lu
AddLanguage ca .ca
AddLanguage es .es
AddLanguage sv .se
AddLanguage cz .cz
AddLanguage ru .ru
AddLanguage zh-tw .tw
AddLanguage tw .tw
AddCharset Big5 .Big5 .big5
AddCharset WINDOWS-1251 .cp-1251
AddCharset CP866 .cp866
AddCharset ISO-8859-5 .iso-ru
AddCharset KOI8-R .koi8-r
AddCharset UCS-2 .ucs2
AddCharset UCS-4 .ucs4
AddCharset UTF-8 .utf8

<IfModule mod_negotiation.c>
LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw
</IfModule>


AddType application/x-tar .tgz


<IfModule mod_php3.c>
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .phps
AddType application/x-httpd-php3 .phtml
</IfModule>

<IfModule mod_php4.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php4
AddType application/x-httpd-php-source .phps
</IfModule>

<IfModule mod_dtcl.c>
AddType application/x-httpd-tcl .ttml
AddType application/x-dtcl-tcl .tcl
</IfModule>

AddType text/vnd.wap.wml wml
AddType text/vnd.wap.wmlscript wmls
AddType application/vnd.wap.wmlc wmlc
AddType application/vnd.wap.wmlscriptc wmlsc
Addtype image/vnd.wap.wbmp wbmp

AddHandler cgi-script .cgi


AddType text/html .shtml
AddHandler server-parsed .shtml



</IfModule>



<IfModule mod_setenvif.c>

BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0


BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0

</IfModule>


<IfDefine STATUS>
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from localhost
</Location>


<Location /server-info>
SetHandler server-info
Order deny,allow
Deny from all
Allow from localhost
</Location>


<IfModule mod_perl.c>
<Location /perl-status>
SetHandler perl-script
PerlHandler Apache::Status
order deny,allow
deny from all
allow from localhost
</Location>
</IfModule>
</IfDefine>

NameVirtualHost *


<VirtualHost 192.168.0.10>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /usr/local/httpd/htdocs2
ServerName dummy-host.example.com
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>


<IfDefine SSL>
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl
</IfDefine>

<IfModule mod_ssl.c>


SSLPassPhraseDialog builtin


SSLSessionCache dbm:/var/run/ssl_scache
SSLSessionCacheTimeout 300


SSLMutex file:/var/run/ssl_mutex


SSLRandomSeed startup builtin
SSLRandomSeed connect builtin



SSLLog /var/log/httpd/ssl_engine_log
SSLLogLevel info

</IfModule>

<IfDefine SSL>



<VirtualHost _default_:443>

# General setup for the virtual host
DocumentRoot "/usr/local/httpd/htdocs"
ServerName new.host.name
ServerAdmin you@your.address
ErrorLog /var/log/httpd/error_log
TransferLog /var/log/httpd/access_log


SSLEngine on


SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSL v2:+EXP:+eNULL


SSLCertificateFile /etc/httpd/ssl.crt/server.crt
#SSLCertificateFile /etc/httpd/ssl.crt/server-dsa.crt

SSLCertificateKeyFile /etc/httpd/ssl.key/server.key

<Files ~ "\.(cgi|shtml|phtml|php3?)$">
SSLOptions +StdEnvVars
</Files>
<Directory "/usr/local/httpd/cgi-bin">
SSLOptions +StdEnvVars
</Directory>

SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0


CustomLog /var/log/httpd/ssl_request_log \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

</VirtualHost>

</IfDefine>


Include /etc/httpd/suse_include.conf

red
11.05.03, 19:13
Hmm :( komisch, naja ich schau mir die conf mal später an *G*

Raytheon
11.05.03, 19:17
ok THX auf jeden fall (auch an pinguin007)

Ich hab eh 3x überlegt ob ich die conf posten soll :D

red
11.05.03, 22:03
hmm vielleicht steht ja in der Suse_include was drinne was da stört ?! weil sonst hab ich nix gesehen. wenn du wilslt kann ich dir mal meine apache conf schicken.

majobu
12.05.03, 12:39
Also ich habe bei meinen Live-Servern folgende Einträge gemacht die dann wunderbar funktionieren:



<VirtualHost 192.168.255.5:80>
ServerAdmin postmaster@xyz.de
DocumentRoot /website/www.xyz.de
ServerName produktdb.xyz.de
CustomLog logs/produktdb.xyz.de-access_log combined
ErrorLog /usr/local/apache/logs/produktdb.xyz-error.log
Alias /ekh "/website/www.xyz.de/marktplatz/ekh"

JkLogFile /usr/local/apache/logs/mod_jk.log
JkLogLevel info
JkMount /ekh/*.jsp remoteajp13

ScriptAlias /cgi/ "/website/xyzcgi/"
<Location /cgi-bin/WebObjects*>
SetHandler WebObjects
</Location>
</VirtualHost>

<Directory "/website/www.xyz.de">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>


An den Direktiven solltest du dich nicht stören... Ich wollte dir nur mal ein Beispiel unserer funktionierenden VirtualHost Umgebung posten.

Was sagen denn die Logs des Apache?

Gruß
Majobu

madnobody
12.05.03, 15:04
hi,

wenn du das mit den virtuellen ipadressen machst, dann brauchst du die namevirtualhost option nicht, weil du ja keinen dns hast.

bei
listen 192.168.0.9
listen 192.168.0.10
<virtualhost 192.168.0.9>

</virtualhost>
<virtualhost 192.168.0.10>

</virtualhost>

bei den modulen solltest du auch mal ausmisten, da ist viel drin was du nicht brauchst.

cu nobody