• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Issue Where to add additional GEO directives to Ngnix

Mnu555

New Pleskian
Where to add additional GEO directives to Ngnix, like this ?:
geo $trusted_user {
default 0;
1.1.1.0/24 1;
2.2.2.0/24 1;
}

server
{
if ( $trusted_user ~ 0 ) {rewrite ^ https://example.com; }
}

In Domains > example.com > Apache & nginx Settings this is not possible.
I got error: GEO directive not allowed here.
I need to add these directives only for one domain, and so that after the Plesk update they are not lost.
 
Last edited:
Back
Top