location /lam {
index index.html;
alias /usr/share/ldap-account-manager;
autoindex off;
# HSTS header to enforce https:// connections
# add_header Strict-Transport-Security "max-age=31536000";
location ~ /lam/tmp/(.|\n)*\.(php|inc)$ {
deny all;
return 403;
}
location ~ /lam/(.|\n)*\.(json)$ {
deny all;
return 403;
}
location ~ /lam/(tmp/internal|sess|config|docs/devel|docs/schema|lib|help|locale) {
deny all;
return 403;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php-fpm.sock;
fastcgi_param SCRIPT_FILENAME $request_filename;
}
}