Construction deny, allow stopped working after you have installed nginx in front of apache, how to fix the situation

Construction deny, allow stopped working  after you have installed nginx in front of apache, how to fix the situation?

Use the following structure instead of the previous one:

SetEnvIf Remote_Addr "4.2.2.10" realremoteaddr
SetEnvIf Remote_Addr "182.168.1.100" realremoteaddr
order deny, allow
allow from env = realremoteaddr
deny from all

IP addresses are specified for example, you need to change them on your own.
  • 12 Users Found This Useful
Was this answer helpful?

Related Articles

How to move the domain from one server to another

If you have multiple hosting accounts and you want to move a domain from one account to another,...

Internal Server Error

On some of our hosting servers php operates in suphp mode, so the error "Internal Server Error"...

I have added your domain hosting and it does not work, what to do

I have added your domain hosting and it does not work, what to do?After you add the domain to...