Страница 1 из 1

Подскажите с RewriteRule

Добавлено: 2011-12-16 14:39:49
densan
Здравствуйте.
Не могу понять почему не работает правило RewriteRule.
установлен apache-2.2.21 с модулями

Код: Выделить всё

httpd -M
Loaded Modules:
 core_module (static)
 mpm_prefork_module (static)
 http_module (static)
 so_module (static)
 authn_file_module (shared)
 authn_dbm_module (shared)
 authn_anon_module (shared)
 authn_default_module (shared)
 authn_alias_module (shared)
 authz_host_module (shared)
 authz_groupfile_module (shared)
 authz_user_module (shared)
 authz_dbm_module (shared)
 authz_owner_module (shared)
 authz_default_module (shared)
 auth_basic_module (shared)
 auth_digest_module (shared)
 file_cache_module (shared)
 cache_module (shared)
 disk_cache_module (shared)
 dumpio_module (shared)
 reqtimeout_module (shared)
 include_module (shared)
 filter_module (shared)
 charset_lite_module (shared)
 deflate_module (shared)
 log_config_module (shared)
 logio_module (shared)
 env_module (shared)
 mime_magic_module (shared)
 cern_meta_module (shared)
 expires_module (shared)
 headers_module (shared)
 usertrack_module (shared)
 unique_id_module (shared)
 setenvif_module (shared)
 version_module (shared)
 ssl_module (shared)
 mime_module (shared)
 dav_module (shared)
 status_module (shared)
 autoindex_module (shared)
 asis_module (shared)
 info_module (shared)
 cgi_module (shared)
 dav_fs_module (shared)
 vhost_alias_module (shared)
 negotiation_module (shared)
 dir_module (shared)
 imagemap_module (shared)
 actions_module (shared)
 speling_module (shared)
 userdir_module (shared)
 alias_module (shared)
 rewrite_module (shared)
 proxy_module (shared)
 proxy_http_module (shared)
 perl_module (shared)
 php5_module (shared)
в httpd-vhosts.conf прописана секция для jwchat:

Код: Выделить всё

<VirtualHost *:80>
  ServerName host.domen.corp
  ServerAlias www.host.domen.corp
  ErrorLog "/var/log/jwchat-error_log"
  CustomLog "/var/log/jwchat-access_log" common
  DocumentRoot /usr/local/www/jwchat/
  <Directory /usr/local/www/jwchat/>
    Allow from all
    Options  +Indexes +MultiViews
  </Directory>
  AddDefaultCharset UTF-8
  RewriteEngine on
  RewriteRule ^http-bind/ http://host.domen.corp:7070/
</VirtualHost>

Re: Подскажите с RewriteRule

Добавлено: 2011-12-16 14:53:18
densan
форум не дает править сообщения.
не работает переадресация http://host.domen.corp/http-bind/ на http://host.domen.corp:7070/

Re: Подскажите с RewriteRule

Добавлено: 2011-12-16 17:06:39
densan
проблема решена заменой строчки
RewriteRule ^http-bind/ http://host.domen.corp:7070/
RewriteRule ^/http-bind/ http://host.domen.corp:7070/