Jump to content

Htaccess Issue


adv

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/272030-htaccess-issue/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.