Все как в лучших домах.
Среди прочих описанных хостов есть download.site.su.
Но при обращении по адресу dounload.site.su/test.txt я получаю тот же файл, что и получил бы по адресу download.site.su/test.txt
Впрочем и dawnload.site.su выдает то же самое. Ни то, ни другого в /etc/apache2/sites-available естественно нету.
В логе download.site.su.access.log появляется запись, как будто обращение идет по правильному адресу:
Код: Выделить всё
192.168.1.1 - - [17/Mar/2010:20:26:12 +0000] "GET /test.txt HTTP/1.1" 200 345 "-" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100225 Iceweasel/3.5.8 (like Firefox/3.5.8)"Конфиг хоста:
Код: Выделить всё
<VirtualHost *:80>
ServerName download.site.su
DocumentRoot /var/www/download.site.su
CustomLog /var/www/logs/download.site.su.access.log combined
ErrorLog /var/www/logs/download.site.su.error.log
ServerAlias www.download.site.su
ServerAdmin info@download.site.su
DirectoryIndex index.php
php_admin_value open_basedir "/var/www/download.site.su:."
AddType application/x-httpd-php .php .php3 .php4 .php5 .phtml
AddType application/x-httpd-php-source .phps
</VirtualHost>Конфиг самого апача:
Код: Выделить всё
ServerRoot "/etc/apache2"
LockFile /var/lock/apache2/accept.lock
PidFile ${APACHE_PID_FILE}
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
<IfModule mpm_prefork_module>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild 0
</IfModule>
<IfModule mpm_worker_module>
StartServers 2
MinSpareThreads 25
MaxSpareThreads 75
ThreadLimit 64
ThreadsPerChild 25
MaxClients 150
MaxRequestsPerChild 0
</IfModule>
<IfModule mpm_event_module>
StartServers 2
MaxClients 100
MinSpareThreads 25
MaxSpareThreads 75
ThreadLimit 64
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}
AccessFileName .htaccess
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>
DefaultType text/plain
HostnameLookups Off
ErrorLog /var/log/apache2/error.log
LogLevel warn
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf
Include /etc/apache2/httpd.conf
Include /etc/apache2/ports.conf
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog /var/log/apache2/other_vhosts_access.log vhost_combined
Include /etc/apache2/conf.d/
Include /etc/apache2/sites-enabled/
<Directory />
Order Deny,Allow
Deny from all
Options None
AllowOverride None
</Directory>
<Directory "/var/www">
AllowOverride All
Options FollowSymLinks
Order allow,deny
Allow from all
<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>
</Directory>
ServerName i.p.add.ressСобственно вопрос:
Почему так происходит и как с этим бороться?
зы Попробовал поошибаться в других виртуальных хостах, такая штука не прокатывает..
Я запутался. Хотя б по какому слову гуглить подскажите.