настраивал весь день ... терь буду постить
делаю 2 вирт хоста
NameVirtualHost www.qwe.group
<VirtualHost www.qwe.group>
ServerAdmin webmaster@localhost
ServerName www.qwe.group
DocumentRoot /home/www/qwe.group
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/www/qwe.group>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
#RedirectMatch ^/$ /apache2-default/
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/home/www/qwe.group/cgi-bin">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /home/www/qwe.group/logs/chat.error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /home/www/qwe.group/logs/qwe_access.log combined
ServerSignature On
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
второй вирт хост
NameVirtualHost www.asd.group
<VirtualHost www.asd.group>
ServerAdmin asd@localhost
ServerName www.asd.group
DocumentRoot /home/www/asd.group
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/www/asd.group>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
#RedirectMatch ^/$ /apache2-default/
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /home/www/asd.group/logs/asd_error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /home/www/asd.group/logs/asd_access.log combined
ServerSignature On
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
в портах
Listen 80
в /etc/hosts прописаны сетевые соединения
192.168.2.1 www.qwe.group qwe.group www.asd.group asd.group
192.168.0.1 www.qwe.group qwe.group www.asd.group asd.group
виртуальные хосты работают из локальной машины хорошо, с сетевой машины вместо qwe.group грузится asd.group а qwe.group не грузится вообще.
чо за траблы ?
кстате ServerAlias дерективы тоже пробовал - не помагает
reload апача вот чо говорит
$ sudo /etc/init.d/apache2 reload
* Reloading web server config... 779
[Thu Dec 20 00:27:32 2007] [warn] NameVirtualHost www.sams.group:0 has no VirtualHosts
[Thu Dec 20 00:27:32 2007] [warn] NameVirtualHost www.sams.group:0 has no VirtualHosts
[Thu Dec 20 00:27:32 2007] [warn] NameVirtualHost *:0 has no VirtualHosts
[Thu Dec 20 00:27:32 2007] [warn] NameVirtualHost *:0 has no VirtualHosts
[ OK ]