Learn about Centmin Mod LEMP Stack today
Become a Member

Nginx block.conf firewall not working?

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by Oxide, Jun 1, 2015.

  1. Oxide

    Oxide Active Member

    531
    29
    28
    Mar 19, 2015
    Ratings:
    +58
    Local Time:
    10:31 PM
    Sorry, delete please.

    permission to delete posts maybe? lol

     
  2. eva2000

    eva2000 Administrator Staff Member

    48,887
    11,189
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,423
    Local Time:
    10:31 PM
    Nginx 1.21.x
    MariaDB 10.x
    by default block.conf is commented out so you need to uncomment it removing hash # in from of include line in nginx vhost and restart nginx server

    change from
    Code:
    # block common exploits, sql injections etc
    #include /usr/local/nginx/conf/block.conf;
    to

    Code:
    # block common exploits, sql injections etc
    include /usr/local/nginx/conf/block.conf;