mickys Posted April 10, 2010 Report Share Posted April 10, 2010 (edited) Ir uzstādīts Reversais Proxy, bet radusies problēma print_r($_SERVER); [sERVER_NAME] => *.*.*.102 [sERVER_ADDR] => *.*.*.102 [REMOTE_ADDR] => *.*.*.10 Tā rezultātā visos Otrā servera (tā uz kuru forvardē) LOG failos uzrādās viena IP adrese (Pirmā servera iekšējā) edit: Tas pats arī ar HTTP_HOST mainīgo, rādās servera iekšējā IP, nevis domēns Edited April 10, 2010 by mickys Quote Link to comment Share on other sites More sharing options...
kirils Posted April 10, 2010 Report Share Posted April 10, 2010 nu labi, jaa, taa notiek. un kur ir probleema? Quote Link to comment Share on other sites More sharing options...
mickys Posted April 10, 2010 Author Report Share Posted April 10, 2010 Ui, mana vaina. Jautājums: Kā to novērst? Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted April 10, 2010 Report Share Posted April 10, 2010 X_FORWARDED_FOR neuzstādās? Ko satur: print_r($_SERVER); Quote Link to comment Share on other sites More sharing options...
mickys Posted April 10, 2010 Author Report Share Posted April 10, 2010 Uzstādās... Bet katrā skriptā,k ur tas ir ticis lietots, pārlabot... Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted April 10, 2010 Report Share Posted April 10, 2010 Nu... faktiski jā - tā sanāk... Nu vēl variants - php.ini uzstādījumos norādīt automātiski izpildāmo skriptu, kas samaina vietām - varbūt šāds risinājums der... + http://drupal.org/node/20471 + http://www.cotds.org/mod_extract_forwarded2/ Quote Link to comment Share on other sites More sharing options...
marrtins Posted April 14, 2010 Report Share Posted April 14, 2010 Ja Apache, tad es izmantoju rpaf_module Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.