Paul Larson
Basic Pleskian
I'm at my wits end on this one.
I have a URL example.com/order-export
I want access to that URL to be limited by IP address.
When I make a physical Linux directory, order-export, the Nginx config below works:
location = /order-export {
allow 1.2.3.4;
deny all;
}
Now, after I remove order-export, that same URL is handled by my CMS (ExpressionEngine). example.com/order-export remains browsable.
What might I be missing, such that the Nginx rule will work for dynamic URLs rather than physical directories?
I have a URL example.com/order-export
I want access to that URL to be limited by IP address.
When I make a physical Linux directory, order-export, the Nginx config below works:
location = /order-export {
allow 1.2.3.4;
deny all;
}
Now, after I remove order-export, that same URL is handled by my CMS (ExpressionEngine). example.com/order-export remains browsable.
What might I be missing, such that the Nginx rule will work for dynamic URLs rather than physical directories?