| ||||||||||||||||
|
||||||||||||||||
> может вот так попробовать тебе:
>
> RewriteEngine on
> RewriteLogLevel 0
> RewriteMap ports txt:/path/to/map.txt
> RewriteRule ^/(.*\.(mpl|iphtml))$
> http://backend.server.ru:${ports:%{ENV:SERVER_PORT}|81}/$1
>
> #--[ map ]--#
> 80 81
> 8000 9000
> 8001 9001
> 8002 9002
> 8003 9003
> #--[ end ]--#
>
> и на бэкенде перед каждым namebased делать так:
>
> Listen YOUR_PORT
> <VirtualHost backend.server.ru:YOUR_PORT>
> ServerName backend.server.ru
> </VirtualHost>
>
Это и в rewriting guide написано так, только зачем на каждую кодировку
прописывать неймбазед? :(
у меня щас <VirtualHost backend.server.ru:*>
Работает ведь при других номерах портов
=============================================================================
= 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 . Design (C) 1998 Max Smolev. |
||