• 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.

Resolved HttpGeoipModule: nginx?

omexlu

Regular Pleskian
Hello,

can HttpGeoipModule be used out of the box with nginx on plesk?
As i see in nginx -V it can't be used.

How can i exclude countrys?

EDIT: I think i found a way to do that, i will give a try this week:
Using CloudFlare for country blocking - Nginx Library

Question: Can this be put in additional nginx directive in GUI, so that i can config different countrys for different websites:
Code:
map $http_cf_ipcountry $allow {
        default yes;
        CN no;
        MX no;
        NO no;
}
if ($allow = no) {
    return 403;
}

Thanks
 
Last edited:
Hi omexlu,

nope, the current Plesk "sw-nginx" - component doesn't include the module "HttpGeoipModule".


But you may read and follow my tutorial, in order to be able to compile your very own NGINX - version. ;)


Thanks but this is to advanced for me :D im only a privatman not a hosting provider :D
What about the solution mentioned above, this can be working that way?
 
I have take a look but seems very advanced and it get overriden on plesk updates as i read, then i stopped read :)

But what about that above, this is a very easy to implement if it works ?
 
Hi omexlu,

your thread title is "HttpGeoipModule: nginx?" and this has been answered.

If you desire help for additional questions, not related to your topic, pls. consider to open a NEW thread and try not to mix threads. People visiting the forum and users who found threads with the help of search engine, will get confused and irritated if you mix threads with all kinds of questions/errors/issues/problems, not related to the thread title and the initial post content!
 
Back
Top