diff --git a/conf/nginx.conf b/conf/nginx.conf index df689722..7f19de92 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -29,21 +29,21 @@ server { # ownCloud configuration # TODO: we should support owncloud to be loaded from www root, but for now we dont :-) client_max_body_size 10G; # set max upload size - fastcgi_buffers 64 4K; + fastcgi_buffers 64 4K; - location = /robots.txt { + location = /robots.txt { allow all; - log_not_found off; - access_log off; - } + log_not_found off; + access_log off; + } - error_page 403 /owncloud/core/templates/403.php; - error_page 404 /owncloud/core/templates/404.php; + error_page 403 /owncloud/core/templates/403.php; + error_page 404 /owncloud/core/templates/404.php; - rewrite ^/caldav(.*)$ /owncloud/remote.php/caldav$1 redirect; - rewrite ^/carddav(.*)$ /owncloud/remote.php/carddav$1 redirect; - rewrite ^/webdav(.*)$ /owncloud/remote.php/webdav$1 redirect; - rewrite ^/owncloud$ /owncloud/ redirect; + rewrite ^/caldav(.*)$ /owncloud/remote.php/caldav$1 redirect; + rewrite ^/carddav(.*)$ /owncloud/remote.php/carddav$1 redirect; + rewrite ^/webdav(.*)$ /owncloud/remote.php/webdav$1 redirect; + rewrite ^/owncloud$ /owncloud/ redirect; rewrite ^/owncloud/$ /owncloud/index.php; location /owncloud/ { @@ -61,15 +61,15 @@ server { } location ~ ^/(data|config|\.ht|db_structure\.xml|README) { - deny all; - } + deny all; + } # Optional: set long EXPIRES header on static assets - location ~* ^.+\.(jpg|jpeg|gif|bmp|ico|png|css|js|swf)$ { - expires 30d; - # Optional: Don't log access to assets - access_log off; - } + location ~* ^.+\.(jpg|jpeg|gif|bmp|ico|png|css|js|swf)$ { + expires 30d; + # Optional: Don't log access to assets + access_log off; + } # Webfinger configuration. # TODO: fix this for owncloud: http://doc.owncloud.org/server/5.0/admin_manual/installation/installation_others.html