| 1 |
location /lam { |
| 2 |
index index.html; |
| 3 |
alias /usr/share/ldap-account-manager; |
| 4 |
autoindex off; |
| 5 |
# HSTS header to enforce https:// connections |
| 6 |
# add_header Strict-Transport-Security "max-age=31536000"; |
| 7 |
|
| 8 |
location ~ /lam/tmp/(.|\n)*\.(php|inc)$ { |
| 9 |
deny all; |
| 10 |
return 403; |
| 11 |
} |
| 12 |
|
| 13 |
location ~ /lam/(.|\n)*\.(json)$ { |
| 14 |
deny all; |
| 15 |
return 403; |
| 16 |
} |
| 17 |
|
| 18 |
location ~ /lam/(tmp/internal|sess|config|docs/devel|docs/schema|lib|help|locale) { |
| 19 |
deny all; |
| 20 |
return 403; |
| 21 |
} |
| 22 |
|
| 23 |
location ~ \.php$ { |
| 24 |
include snippets/fastcgi-php.conf; |
| 25 |
fastcgi_pass unix:/var/run/php/php-fpm.sock; |
| 26 |
fastcgi_param SCRIPT_FILENAME $request_filename; |
| 27 |
} |
| 28 |
|
| 29 |
} |