Russian Apache mailing list archive (apache-rus@lists.lexa.ru)
[Date Prev ][Date Next ][Thread Prev ][Thread Next ][Date Index ][Thread Index ]
[apache-talk] о настройке rewrite
------------[*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@xxxxxxxxxx
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@xxxxxxxxxxxxxxx
Good luck to you
=============================================================================
= Apache-Talk@xxxxxxxxxxxxx mailing list =
Mail "unsubscribe apache-talk" to majordomo@xxxxxxxxxxxxx if you want to quit.
= Archive avaliable at http://www.lexa.ru/apache-talk =
Спонсоры сайта:
"Russian Apache" includes software developed
by the Apache Group for use in the Apache HTTP server project
(http://www.apache.org/) See
Apache LICENSE .
Copyright (C) 1995-2001 The Apache Group. All rights reserved.
Copyright (C) 1996 Dm. Kryukov; Copyright (C)
1997-2009 Alex Tutubalin . Design (C) 1998 Max Smolev.