Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 443;
- access_log /var/log/nginx/owncloud.access.log custom;
- error_log /var/log/nginx/owncloud.error.log;
- root /var/www/owncloud;
- index index.php;
- error_page 403 /core/templates/403.php;
- error_page 404 /core/templates/404.php;
- client_max_body_size 10G;
- proxy_redirect http://$host/ $scheme://$host/;
- # rewriting
- rewrite ^/.well-known/host-meta /public.php?service=host-meta last;
- rewrite ^/.well-known/carddav /remote.php/carddav/ redirect;
- rewrite ^/.well-known/caldav /remote.php/caldav/ redirect;
- rewrite ^/apps/calendar/caldav.php /remote.php/caldav/ last;
- rewrite ^/apps/contacts/carddav.php /remote.php/carddav/ last;
- rewrite ^/apps/([^/]*)/(.*\.(css|php))$ /index.php?app=$1&getfile=$2 last;
- rewrite ^/remote/(.*) /remote.php/$1 last;
- location ~ ^/(data|config|.ht|db_structure\.xml|README) {
- deny all;
- }
- location ~ \.php/?.*$ {
- fastcgi_split_path_info ^(.+\.php)(/.*)$;
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_param HTTP_AUTHORIZATION $http_authorization;
- fastcgi_param HTTPS on;
- include fastcgi_params;
- }
- # default
- location / {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement