Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mailinabox
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mailinabox
Commits
a0e6c7ce
Commit
a0e6c7ce
authored
May 30, 2015
by
Joshua Tauberer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix downloading dotfiles through ownCloud's webdav
fixes #414
parent
49aa367f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
7 deletions
+15
-7
nginx-primaryonly.conf
conf/nginx-primaryonly.conf
+1
-0
nginx.conf
conf/nginx.conf
+14
-7
No files found.
conf/nginx-primaryonly.conf
View file @
a0e6c7ce
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
# /cloud/index.php/apps/files/
# /cloud/index.php/apps/files/
# /cloud/index.php/apps/files/ajax/scan.php (it's really index.php; see 6fdef379adfdeac86cc2220209bdf4eb9562268d)
# /cloud/index.php/apps/files/ajax/scan.php (it's really index.php; see 6fdef379adfdeac86cc2220209bdf4eb9562268d)
# /cloud/ocs/v1.php/apps/files_sharing/api/v1 (see #240)
# /cloud/ocs/v1.php/apps/files_sharing/api/v1 (see #240)
# /cloud/remote.php/webdav/yourfilehere...
include
fastcgi_params
;
include
fastcgi_params
;
fastcgi_param
SCRIPT_FILENAME
/
usr
/
local
/
lib
/
owncloud
/$
2
;
fastcgi_param
SCRIPT_FILENAME
/
usr
/
local
/
lib
/
owncloud
/$
2
;
fastcgi_param
SCRIPT_NAME
$
1
$
2
;
fastcgi_param
SCRIPT_NAME
$
1
$
2
;
...
...
conf/nginx.conf
View file @
a0e6c7ce
...
@@ -54,13 +54,6 @@ server {
...
@@ -54,13 +54,6 @@ server {
alias
/var/lib/mailinabox/mozilla-autoconfig.xml
;
alias
/var/lib/mailinabox/mozilla-autoconfig.xml
;
}
}
# Disable viewing dotfiles (.htaccess, .svn, .git, etc.)
location
~
/\.(ht|svn|git|hg|bzr)
{
log_not_found
off
;
access_log
off
;
deny
all
;
}
# Roundcube Webmail configuration.
# Roundcube Webmail configuration.
rewrite
^/mail
$
/mail/
redirect
;
rewrite
^/mail
$
/mail/
redirect
;
rewrite
^/mail/
$
/mail/index.php
;
rewrite
^/mail/
$
/mail/index.php
;
...
@@ -106,4 +99,18 @@ server {
...
@@ -106,4 +99,18 @@ server {
# ADDITIONAL DIRECTIVES HERE
# ADDITIONAL DIRECTIVES HERE
# Disable viewing dotfiles (.htaccess, .svn, .git, etc.)
# This block is placed at the end. Nginx's precedence rules means this block
# takes precedence over all non-regex matches and only regex matches that
# come after it (i.e. none of those, since this is the last one.) That means
# we're blocking dotfiles in the static hosted sites but not the FastCGI-
# handled locations for ownCloud (which serves user-uploaded files that might
# have this pattern, see #414) or some of the other services.
location
~
/\.(ht|svn|git|hg|bzr)
{
log_not_found
off
;
access_log
off
;
deny
all
;
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment