adv Posted December 15, 2012 Share Posted December 15, 2012 (edited) hello i have a problem ProxyPass / http://internal03.hide.domain.com/ ProxyPassReverse / http://internal03.hide.domain.com/ i want for the internal to get the client original ip i have enabled mod_remoteip.so RemoteIPHeader X-Forwarded-For and i was able to get the real ip through $ip=$_SERVER['HTTP_X_FORWARDED_FOR']; but in the internal server i have in .htaccess RewriteEngine On order allow,deny deny from 149. allow from 62. ErrorDocument 403 notallowed.html but the internal doesnt take the real ip and gets the internal ip i found something RewriteCond %{HTTP:X-Forwarded-For} !^$ [OR] but i dont know how to implement it Edited December 15, 2012 by adv Quote Link to comment https://forums.phpfreaks.com/topic/272030-htaccess-issue/ Share on other sites More sharing options...
requinix Posted December 16, 2012 Share Posted December 16, 2012 And you can't put the Deny/Allow in the proxy's .htaccess? Quote Link to comment https://forums.phpfreaks.com/topic/272030-htaccess-issue/#findComment-1399612 Share on other sites More sharing options...
adv Posted December 16, 2012 Author Share Posted December 16, 2012 no no but thanks i`ve solved it and for anybody install mod_rpaf and it works properly. Quote Link to comment https://forums.phpfreaks.com/topic/272030-htaccess-issue/#findComment-1399685 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.