문제

I'm currently trying to do a simple random load balancing using 2 servers with symfony2.

In the /web .htaccess file, I have tried a lot of combinations, but result is always blank and I do not see a way to debug. What could help ?

.htaccess file :

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteMap servers rnd:/map.txt

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ app.php [QSA,PT]
</IfModule>

The map.txt is in the /web folder too. The problem occurs when I add the line RewriteMap servers rnd:/map.txt

올바른 솔루션이 없습니다

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top