|
|
|
|
АРХИВ :: Apache-Talk
|
Apache-Talk mailing list archive (apache-talk@lists.lexa.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[apache-talk] =?koi8-r?B?zyDOwdPU0s/Ky8UgcmV3cml0ZQ==?=
------------[*KOI8-R*]-----[12.05.2001 13:46]--------------
Добрый день, all!
Есть задача:
переадресовывать клиента:
127.0.0.101 в директорию root_dir/www/1/
127.0.0.102 в директорию root_dir/www/2/
127.0.0.103 в директорию root_dir/www/3/
# в файле http.conf
<VirtualHost 127.0.0.100 127.0.0.101 127.0.0.102 127.0.0.103>
ServerName creatis.ru
DocumentRoot "/usr/home/hosting/creatis"
ServerAdmin creatis@creatis.ru
ErrorLog /usr/home/hosting/creatis/logs/error.log
CustomLog /usr/home/hosting/creatis/logs/access.log common
RewriteLog /usr/home/hosting/creatis/logs/rewrite.log
RewriteLogLevel 9
<Directory "/usr/home/hosting/creatis/cgi-bin">
Options ExecCGI
</Directory>
</VirtualHost>
# прописываю в .htaccess
Options FollowSymLinks SymLinksIfOwnerMatch Includes
RewriteEngine on
RewriteCond %{HTTP_HOST} ^127\.0\.0\.101(.*)
RewriteCond %{SERVER_ADDR} ^127\.0\.0\.101(.*)
RewriteRule ^/$ www/1/ [R]
------------------
но ничего не получается. файл index.html из www/1/ не грузится
# кусок rewrite.log
127.0.0.101 - - [05/May/2001:20:09:46 +0600]
[creatis.ru/sid#6681a8][rid#704804/initial] (3) [per-dir
/usr/home/hosting/creatis/] add path-info postfix: /usr/home/hosting/creatis ->
/usr/home/hosting/creatis/
127.0.0.101 - - [05/May/2001:20:09:46 +0600]
[creatis.ru/sid#6681a8][rid#704804/initial] (3) [per-dir
/usr/home/hosting/creatis/] strip per-dir prefix: /usr/home/hosting/creatis/ ->
127.0.0.101 - - [05/May/2001:20:09:46 +0600]
[creatis.ru/sid#6681a8][rid#704804/initial] (3) [per-dir
/usr/home/hosting/creatis/] applying pattern '^/$' to uri ''
127.0.0.101 - - [05/May/2001:20:09:46 +0600]
[creatis.ru/sid#6681a8][rid#704804/initial] (1) [per-dir
/usr/home/hosting/creatis/] pass through /usr/home/hosting/creatis
127.0.0.101 - - [05/May/2001:20:09:46 +0600]
[creatis.ru/sid#6681a8][rid#7060bc/initial/redir#1] (3) [per-dir
/usr/home/hosting/creatis/] strip per-dir prefix:
/usr/home/hosting/creatis/index.html -> index.html
127.0.0.101 - - [05/May/2001:20:09:46 +0600]
[creatis.ru/sid#6681a8][rid#7060bc/initial/redir#1] (3) [per-dir
/usr/home/hosting/creatis/] applying pattern '^/$' to uri 'index.html'
127.0.0.101 - - [05/May/2001:20:09:46 +0600]
[creatis.ru/sid#6681a8][rid#7060bc/initial/redir#1] (1) [per-dir
/usr/home/hosting/creatis/] pass through /usr/home/hosting/creatis/index.html
Заранее спасибо.
-----------------------------------------------------------
Дмитрий Исаев isaev@online.sinor.ru
Good luck to you
=============================================================================
= Apache-Talk@lists.lexa.ru mailing list =
Mail "unsubscribe apache-talk" to majordomo@lists.lexa.ru if you want to quit.
= Archive avaliable at http://www.lexa.ru/apache-talk =
|
|
|