Skip to content
Snippets Groups Projects
Commit 0bf67298 authored by Kamil Domanski's avatar Kamil Domanski
Browse files

no indexing in generated htaccess

parent 5aa8f16b
No related branches found
No related tags found
No related merge requests found
...@@ -297,6 +297,7 @@ class OC_FILES { ...@@ -297,6 +297,7 @@ class OC_FILES {
$content.= "php_value upload_max_filesize $size\n";//upload limit $content.= "php_value upload_max_filesize $size\n";//upload limit
$content.= "php_value post_max_size $size\n"; $content.= "php_value post_max_size $size\n";
$content.= "SetEnv htaccessWorking true\n"; $content.= "SetEnv htaccessWorking true\n";
$content.= "Options -Indexes\n";
@file_put_contents($SERVERROOT.'/.htaccess', $content); //supress errors in case we don't have permissions for it @file_put_contents($SERVERROOT.'/.htaccess', $content); //supress errors in case we don't have permissions for it
} }
} }
......
...@@ -188,6 +188,7 @@ class OC_SETUP { ...@@ -188,6 +188,7 @@ class OC_SETUP {
$content.= "php_value upload_max_filesize 20M\n";//upload limit $content.= "php_value upload_max_filesize 20M\n";//upload limit
$content.= "php_value post_max_size 20M\n"; $content.= "php_value post_max_size 20M\n";
$content.= "SetEnv htaccessWorking true\n"; $content.= "SetEnv htaccessWorking true\n";
$content.= "Options -Indexes\n";
@file_put_contents($SERVERROOT.'/.htaccess', $content); //supress errors in case we don't have permissions for it @file_put_contents($SERVERROOT.'/.htaccess', $content); //supress errors in case we don't have permissions for it
$content = "deny from all"; $content = "deny from all";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment