Skip to content
This repository was archived by the owner on Mar 6, 2025. It is now read-only.

Latest commit

 

History

History
41 lines (31 loc) · 629 Bytes

nginx.md

File metadata and controls

41 lines (31 loc) · 629 Bytes

Nginx does not support .htaccess files, which means that by using nginx you are exposed to data leakage from your server instance.

Insert the content below into your nginx configuration file

    location /cache/ {
    deny all;
    }

    location /includes/ {
    deny all;
    }

    location /includes/backups/ {
    deny all;
    }

    location /styles/templates/ {
    deny all;
    }

    location /tests/ {
    deny all;
    }

    location /language/ {
    deny all;
    }

    location /install/ {
    deny all;
    }

    location /.git/ {
    deny all;
    }

    location ~ /external/ {
    deny all;
    }