Blame view

conf/nginx.conf 1.6 KB
15e444b37   zamentur   [fix] Avoid to ge...
1
  location PATHTOCHANGE {
03e52840d   Kload   Init
2
3
4
5
         alias ALIASTOCHANGE;
         if ($scheme = http) {
              rewrite ^ https://$server_name$request_uri? permanent;
         }
6fb4b171e   lunarok   Update conf for OC7
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
         #fastcgi_buffers 64 4K;
  
         rewrite ^PATHTOCHANGE/caldav(.*)$ /remote.php/caldav$1 redirect;
         rewrite ^PATHTOCHANGE/carddav(.*)$ /remote.php/carddav$1 redirect;
         rewrite ^PATHTOCHANGE/webdav(.*)$ /remote.php/webdav$1 redirect;
  
         error_page 403 PATHTOCHANGE/core/templates/403.php;
         error_page 404 PATHTOCHANGE/core/templates/404.php;
         
         rewrite ^PATHTOCHANGE/.well-known/host-meta /public.php?service=host-meta last;
         rewrite ^PATHTOCHANGE/.well-known/host-meta.json /public.php?service=host-meta-json last;
  
         rewrite ^PATHTOCHANGE/.well-known/carddav /remote.php/carddav/ redirect;
         rewrite ^PATHTOCHANGE/.well-known/caldav /remote.php/caldav/ redirect;
  
         rewrite ^(PATHTOCHANGE/core/doc/[^\/]+/)$ $1/index.html;
1b87c3257   Kload   Increase file upl...
22
         client_max_body_size 10G;
03e52840d   Kload   Init
23
         index index.php;
541ce3a11   lunarok   Update nginx.conf
24
         try_files $uri $uri/ /index.php;
03e52840d   Kload   Init
25
         location ~ [^/]\.php(/|$) {
541ce3a11   lunarok   Update nginx.conf
26
27
             fastcgi_split_path_info ^(.+?\.php)(/.*)$;
             fastcgi_pass unix:/var/run/php5-fpm-NAMETOCHANGE.sock;
03e52840d   Kload   Init
28
             include fastcgi_params;
541ce3a11   lunarok   Update nginx.conf
29
             fastcgi_param REMOTE_USER $remote_user;
1b87c3257   Kload   Increase file upl...
30
31
             fastcgi_param PATH_INFO $fastcgi_path_info;
             fastcgi_param HTTPS on;
03e52840d   Kload   Init
32
         }
541ce3a11   lunarok   Update nginx.conf
33
34
35
36
         
         # Include SSOWAT user panel.
         sub_filter </head> '<script type="text/javascript" src="/ynhpanel.js"></script></head>';
         sub_filter_once on;
6fb4b171e   lunarok   Update conf for OC7
37

65df8ceac   lunarok   Update nginx.conf
38
  }
d75a41ea1   lunarok   Update nginx.conf
39

65df8ceac   lunarok   Update nginx.conf
40
  location ~ ^PATHTOCHANGE/(data|config|\.ht|db_structure\.xml|README) {
6fb4b171e   lunarok   Update conf for OC7
41
  deny all;
d75a41ea1   lunarok   Update nginx.conf
42
  }