 location ^~ /frames/tts_framework/src/ {
    deny all;
    return 403;
 }

 location ^~ /frames/tts_framework/vendor/ {
    deny all;
    return 403;
 }

 location ^~ /tts_project/vendor/ {
        deny all;
        return 403;
 }

 location ^~ /tts_project/src/ {
    deny all;
    return 403;
 }

 location /tts_project/ {
    # ONLY allow these DOMAINS:
    if ( $http_host !~* ^(127.0.0.1|localhost|mysite.com)$ ) {
            return 444;
    }

    rewrite ^/tts_project/([^/]*)/([^/]*)/([^/]*)/([^/]*)\.html$ /tts_project/index.php?project=$1&route=/$2/$3&m=$4 last;
    try_files $uri $uri/ =404;
}

location ~ /\.ht {
        deny all;
}

location ~ /\.git {
        deny all;
}

location ~ composer.* {
        deny all;
}

location ~ README {
        deny all;
}
