diff options
author | Remi Collet <fedora@famillecollet.com> | 2013-09-29 15:37:21 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2013-09-29 15:37:21 +0200 |
commit | 4450a3b9d83bf670684cd25b741877bafc642ea4 (patch) | |
tree | 511e2d76d1ec68a169666b30934cc9db15bee08f /glpi-httpd.conf | |
parent | 3d7eb4c8ebca3550782a0666baec5acc3b091311 (diff) |
glpi: sync with rawhide
Diffstat (limited to 'glpi-httpd.conf')
-rw-r--r-- | glpi-httpd.conf | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/glpi-httpd.conf b/glpi-httpd.conf index dc48482..e17d296 100644 --- a/glpi-httpd.conf +++ b/glpi-httpd.conf @@ -7,16 +7,35 @@ Alias /glpi /usr/share/glpi php_value memory_limit 64M <IfModule mod_authz_core.c> - Require all granted + Require all granted </IfModule> <IfModule !mod_authz_core.c> - Order deny,allow - Allow from all + Order deny,allow + Allow from all </IfModule> </Directory> <Directory /usr/share/glpi/install> + # Install is only allowed via local access (from the GLPI server). + # Add your IP address if you need it for remote installation, + # but remember to remove it after installation for security. + + <IfModule mod_authz_core.c> + # Apache 2.4 + Require local + # Require ip ##.##.##.## + </IfModule> + <IfModule !mod_authz_core.c> + # Apache 2.2 + Order Deny,Allow + Deny from All + Allow from 127.0.0.1 + Allow from ::1 + </IfModule> + + ErrorDocument 403 "<p><b>Restricted area.</b><br />Only local access allowed.<br />Check your configuration or contact your administrator.</p>" + # migration could be very long php_value max_execution_time 0 php_value memory_limit -1 |