Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
25a2cb8c
Commit
25a2cb8c
authored
8 years ago
by
Robert Scheck
Browse files
Options
Downloads
Patches
Plain Diff
Only request "IndexIgnore" if mod_autoindex is loaded
Signed-off-by:
Robert Scheck
<
robert@fedoraproject.org
>
parent
f25c8946
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
apps/user_ldap/tests/.htaccess
+2
-0
2 additions, 0 deletions
apps/user_ldap/tests/.htaccess
build/.htaccess
+2
-0
2 additions, 0 deletions
build/.htaccess
config/.htaccess
+2
-0
2 additions, 0 deletions
config/.htaccess
lib/private/Setup.php
+2
-0
2 additions, 0 deletions
lib/private/Setup.php
with
8 additions
and
0 deletions
apps/user_ldap/tests/.htaccess
+
2
−
0
View file @
25a2cb8c
...
...
@@ -11,4 +11,6 @@ Satisfy All
</
ifModule
>
# section for Apache 2.2 and 2.4
<
ifModule
mod_autoindex.c
>
IndexIgnore
*
</
ifModule
>
This diff is collapsed.
Click to expand it.
build/.htaccess
+
2
−
0
View file @
25a2cb8c
...
...
@@ -9,4 +9,6 @@ deny from all
</
ifModule
>
# section for Apache 2.2 and 2.4
<
ifModule
mod_autoindex.c
>
IndexIgnore
*
</
ifModule
>
This diff is collapsed.
Click to expand it.
config/.htaccess
+
2
−
0
View file @
25a2cb8c
...
...
@@ -9,4 +9,6 @@ deny from all
</
ifModule
>
# section for Apache 2.2 and 2.4
<
ifModule
mod_autoindex.c
>
IndexIgnore
*
</
ifModule
>
This diff is collapsed.
Click to expand it.
lib/private/Setup.php
+
2
−
0
View file @
25a2cb8c
...
...
@@ -492,7 +492,9 @@ class Setup {
$content
.
=
"Satisfy All
\n
"
;
$content
.
=
"</ifModule>
\n\n
"
;
$content
.
=
"# section for Apache 2.2 and 2.4
\n
"
;
$content
.
=
"<ifModule mod_autoindex.c>
\n
"
;
$content
.
=
"IndexIgnore *
\n
"
;
$content
.
=
"</ifModule>
\n
"
;
$baseDir
=
\OC
::
$server
->
getConfig
()
->
getSystemValue
(
'datadirectory'
,
\OC
::
$SERVERROOT
.
'/data'
);
file_put_contents
(
$baseDir
.
'/.htaccess'
,
$content
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment