Guest User

Untitled

a guest
Mar 19th, 2013
336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. server {
  2. listen 443 ssl;
  3. server_name ***;
  4. include /etc/nginx/ssl.conf;
  5. root /var/www;
  6. index index.php;
  7. client_max_body_size 3048M; # set maximum upload size
  8. set_real_ip_from 10.0.64.254;
  9. real_ip_header X-Real-IP;
  10. # deny direct access
  11. location ~ ^/(data|config|\.ht|db_structure\.xml|README) {
  12. deny all;
  13. }
  14.  
  15. # static
  16. location ~*^.+\.(jpg|jpeg|gif|png|zip|rar|bz2|doc|xls|exe|pdf|ppt|tar|wav|bmp|rtf|mp3|avi)$ {
  17. root /var/www;
  18. }
  19.  
  20. # default try order
  21. location / {
  22. try_files $uri $uri/ @webdav;
  23. }
  24.  
  25. # owncloud WebDAV
  26. location @webdav {
  27. fastcgi_split_path_info ^(.+\.php)(/.*)$;
  28. fastcgi_pass unix://tmp/wwwpool.sock;
  29. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  30. fastcgi_param HTTPS on;
  31. include fastcgi_params;
  32. }
  33.  
  34. # enable php
  35. location ~ \.php$ {
  36. fastcgi_pass unix:/tmp/wwwpool.sock;
  37. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  38. fastcgi_param HTTPS on;
  39. include fastcgi_params;
  40. }
  41. }
Advertisement
Add Comment
Please, Sign In to add comment