I have a site running on Nginx (v1.0.14) serving as reverse proxy which proxies requests to Apache (v2.2.19). So Nginx runs on port 80, Apache is on 8080.
Overall site works fine except that i cannot block access to certain directories with .htaccess file.
For example i have 'my-protected-directory' on 'www.site.com' Inside it i have htaccess with following code:
<Files *> order deny,allow deny from all allow from 184.108.40.206 <--- my ip address here </Files>
When i try to access this page with my ip (220.127.116.11) i get 404 error which is not what i expect:
However everything works as expected when this page is served directly by Apache. I can see this page, everyone else can't.
Update. Nginx config (18.104.22.168 is site ip.):
Update 2: mod_rpaf is installed and ip address get determined correctly
Could please anyone tell me what is wrong and how this can be fixed ?