proftpd и его mod_rewrite
Добавлено: 05 сен 2008, 19:05
Подскажите кто знает. Проблема в том что сделал правило основанное на ipmap и проверке адреса.
Однако оно не работает
Код: Выделить всё
RewriteLog /var/log/proftpd/rewrite.log
RewriteMap ipmap txt:/home/deeo/iplist.txt
RewriteCondition ${ipmap:%a} =allow
RewriteRule ^(.*) /0000/$1/
Однако оно не работает
Код: Выделить всё
ep 02 01:11:32: mod_rewrite/0.6.8: rewrite_subst_maps(): lookup key: '::ffff:192.168.5.10'
Sep 02 01:11:32: mod_rewrite/0.6.8: rewrite_subst_maps(): default value: ''
Sep 02 01:11:32: mod_rewrite/0.6.8: rewrite_subst_maps(): mapping '192.168.5.10' using 'ipmap'
Sep 02 01:11:32: mod_rewrite/0.6.8: [b]rewrite_parse_map_txt(): unable to stat /home/deeo/iplist: No such file or directory[/b]
Sep 02 01:11:32: mod_rewrite/0.6.8: rewrite_subst_maps_txt(): error parsing txt file
Sep 02 01:11:32: mod_rewrite/0.6.8: rewrite_subst_maps(): txt map 'ipmap' returned ''
Sep 02 01:11:32: mod_rewrite/0.6.8: rewrite_subst_maps(): substituting '' for '${ipmap:::ffff:192.168.5.10}'
Sep 02 01:11:32: mod_rewrite/0.6.8: rewrite_parse_map_str(): parsing ''
Sep 02 01:11:32: mod_rewrite/0.6.8: rewrite_subst(): maps subst'd pattern: ''
Sep 02 01:11:32: mod_rewrite/0.6.8: rewrite_match_cond: subst'd cond: ''
Sep 02 01:11:32: mod_rewrite/0.6.8: rewrite_match_cond(): checking lexical EQ cond
Sep 02 01:11:32: mod_rewrite/0.6.8: rewrite_fixup(): condition not met, skipping this Rule