update owncloud article

This commit is contained in:
Jörg Thalheim 2012-07-14 13:12:04 +02:00 committed by Jörg Thalheim
parent dcb1d85d4f
commit 8be2855eb8

View File

@ -47,6 +47,11 @@ server {
access_log off;
}
# deny direct access
location ~ ^/(data|config|\.ht|db_structure.xml|README) {
deny all;
}
location / {
# these line replace the rewrite made in owncloud .htaccess
try_files $uri $uri/ @webdav;
@ -60,11 +65,10 @@ server {
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location ~ .php$ {
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass backend;
fastcgi_param HTTPS on;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}