server { listen 8000; index index.html; root /usr/share/webapps/ldap-account-manager; autoindex off; location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/run/php56-fpm/php-fpm.sock; fastcgi_index index.php; include fastcgi.conf; } location ~ /lam/(tmp/internal|sess|config|lib|help|locale) { deny all; return 403; } }