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.

Залишилися питання?

Якщо інструкції недостатньо, команда GoodNet допоможе з налаштуванням хостингу, домену, VPS або панелі керування.

Зв'язатися з підтримкою Відкрити тікет

© 2007 - 2026 GOODNET.UA Всі права захищені.