ilan at time4learning.com
Sun Dec 15 15:25:28 UTC 2013
Nginx does not use the .htaccess file, only Apache does. To prevent all
users from accessing your site, except those coming from Israel, you can
use the MaxMind Geo IP database in conjunction with an if statement in the
Nginx configuration file. See
http://eng.eelcowesemann.nl/linux-unix-android/nginx/nginx-blocking/ for an
example. Note that use of the "if" statement is not considered a great
idea, see: http://wiki.nginx.org/IfIsEvil.
On Sun, Dec 15, 2013 at 10:21 AM, nginx14 <nginx-forum at nginx.us> wrote:
> Hello, I have a nginx server is enabled.
> And I have a file called htaccess
> The file should cause to allowing accessed only from Israel.
> But the file does not work,
> I realized that it is related to nginx only.
> What can you do?
> Posted at Nginx Forum:
> nginx mailing list
> nginx at nginx.org
Chief Technology Officer
6300 NE 1st Ave., Suite 203
Ft. Lauderdale, FL 33334
Time4Learning.com - Online interactive curriculum for home use, PreK-8th
Time4Writing.com - Online writing tutorials for high, middle, and
elementary school students.
Time4Learning.net - A forum to chat with parents online about kids,
education, parenting and more.
spellingcity.com - Online vocabulary and spelling activities for teachers,
parents and students.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx