Blame view
conf/nginx.conf
855 Bytes
|
03e52840d
|
1 2 3 4 5 |
location PATHTOCHANGE {
alias ALIASTOCHANGE;
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
|
|
1b87c3257
|
6 |
client_max_body_size 10G; |
|
03e52840d
|
7 |
index index.php; |
|
1b87c3257
|
8 |
try_files $uri $uri/ /index.php; |
|
03e52840d
|
9 10 11 |
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_pass unix:/var/run/php5-fpm-NAMETOCHANGE.sock;
|
|
03e52840d
|
12 |
include fastcgi_params; |
|
1b87c3257
|
13 14 15 |
fastcgi_param REMOTE_USER $remote_user;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param HTTPS on;
|
|
03e52840d
|
16 |
} |
|
ea047c57d
|
17 18 |
# Include SSOWAT user panel.
|
|
8ac2193a3
|
19 20 |
sub_filter </head> '<script type="text/javascript" src="/ynhpanel.js"></script></head>';
sub_filter_once on;
|
|
03e52840d
|
21 |
} |
|
1b87c3257
|
22 23 24 25 |
location ~ ^PATHTOCHANGE/(data|config|\.ht|db_structure\.xml|README) {
deny all;
}
|