1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-22 21:28:08 +01:00

Miglioramento di compatibilità

Miglioramento di compatibilità dei contenuti .htaccess con l'introduzione dei controlli sulla presenza del modulo Apache relativo prima dell'istruzione.
This commit is contained in:
Thomas Zilio 2017-12-20 19:18:46 +01:00
parent ce4c4de180
commit 6c820a175f

View File

@ -1,10 +1,17 @@
# Remove autoindex # Remove autoindex
IndexIgnore * <IfModule mod_autoindex.c>
## Options -Indexes IndexIgnore */*
</IfModule>
# Try to set PHP settings # Try to set PHP settings
php_value upload_max_filesize 20M <IfModule mod_php5.c>
php_value post_max_size 20M php_value upload_max_filesize 20M
php_value post_max_size 20M
</IfModule>
<IfModule mod_php7.c>
php_value upload_max_filesize 20M
php_value post_max_size 20M
</IfModule>
# Deny access to files starting with dot # Deny access to files starting with dot
<FilesMatch "^\."> <FilesMatch "^\.">
@ -24,7 +31,7 @@ php_value post_max_size 20M
Deny from all Deny from all
</Files> </Files>
# Disable OSM indexing of php, html, htm, pdf files # Disable indexing of php, html, htm, pdf files
<IfModule mod_headers.c> <IfModule mod_headers.c>
<FilesMatch "\.(php|html|htm|pdf|log)$"> <FilesMatch "\.(php|html|htm|pdf|log)$">
Header set X-Robots-Tag: "noindex" Header set X-Robots-Tag: "noindex"