Advertisement
Guest User

Untitled

a guest
Mar 14th, 2013
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. server {
  2. listen 443;
  3.  
  4. access_log /var/log/nginx/owncloud.access.log custom;
  5. error_log /var/log/nginx/owncloud.error.log;
  6.  
  7. root /var/www/owncloud;
  8. index index.php;
  9.  
  10. error_page 403 /core/templates/403.php;
  11. error_page 404 /core/templates/404.php;
  12.  
  13. client_max_body_size 10G;
  14.  
  15. proxy_redirect http://$host/ $scheme://$host/;
  16.  
  17. # rewriting
  18. rewrite ^/.well-known/host-meta /public.php?service=host-meta last;
  19. rewrite ^/.well-known/carddav /remote.php/carddav/ redirect;
  20. rewrite ^/.well-known/caldav /remote.php/caldav/ redirect;
  21. rewrite ^/apps/calendar/caldav.php /remote.php/caldav/ last;
  22. rewrite ^/apps/contacts/carddav.php /remote.php/carddav/ last;
  23. rewrite ^/apps/([^/]*)/(.*\.(css|php))$ /index.php?app=$1&getfile=$2 last;
  24. rewrite ^/remote/(.*) /remote.php/$1 last;
  25.  
  26. location ~ ^/(data|config|.ht|db_structure\.xml|README) {
  27. deny all;
  28. }
  29.  
  30. location ~ \.php/?.*$ {
  31. fastcgi_split_path_info ^(.+\.php)(/.*)$;
  32. fastcgi_pass 127.0.0.1:9000;
  33. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  34. fastcgi_param HTTP_AUTHORIZATION $http_authorization;
  35. fastcgi_param HTTPS on;
  36. include fastcgi_params;
  37. }
  38.  
  39. # default
  40. location / {
  41. }
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement