Blame view

conf/nginx.conf 856 Bytes
03e52840d   Kload   Init
1
2
3
4
5
  location PATHTOCHANGE {
         alias ALIASTOCHANGE;
         if ($scheme = http) {
              rewrite ^ https://$server_name$request_uri? permanent;
         }
1b87c3257   Kload   Increase file upl...
6
         client_max_body_size 10G;
03e52840d   Kload   Init
7
         index index.php;
541ce3a11   lunarok   Update nginx.conf
8
         try_files $uri $uri/ /index.php;
03e52840d   Kload   Init
9
         location ~ [^/]\.php(/|$) {
541ce3a11   lunarok   Update nginx.conf
10
11
             fastcgi_split_path_info ^(.+?\.php)(/.*)$;
             fastcgi_pass unix:/var/run/php5-fpm-NAMETOCHANGE.sock;
03e52840d   Kload   Init
12
             include fastcgi_params;
541ce3a11   lunarok   Update nginx.conf
13
             fastcgi_param REMOTE_USER $remote_user;
1b87c3257   Kload   Increase file upl...
14
15
             fastcgi_param PATH_INFO $fastcgi_path_info;
             fastcgi_param HTTPS on;
03e52840d   Kload   Init
16
         }
541ce3a11   lunarok   Update nginx.conf
17
18
19
20
         
         # Include SSOWAT user panel.
         sub_filter </head> '<script type="text/javascript" src="/ynhpanel.js"></script></head>';
         sub_filter_once on;
65df8ceac   lunarok   Update nginx.conf
21
  }
d75a41ea1   lunarok   Update nginx.conf
22

65df8ceac   lunarok   Update nginx.conf
23
  location ~ ^PATHTOCHANGE/(data|config|\.ht|db_structure\.xml|README) {
541ce3a11   lunarok   Update nginx.conf
24
         deny all;
d75a41ea1   lunarok   Update nginx.conf
25
  }
541ce3a11   lunarok   Update nginx.conf
26