|
|
|
@ -4,11 +4,12 @@ location PATHTOCHANGE { |
|
|
|
rewrite ^ https://$server_name$request_uri? permanent; |
|
|
|
} |
|
|
|
index index.php; |
|
|
|
if (!-e $request_filename) |
|
|
|
if (!-e $request_filename) |
|
|
|
{ |
|
|
|
rewrite ^(.+)$ PATHTOCHANGE/index.php?q=$1 last; |
|
|
|
} |
|
|
|
location ~ [^/]\.php(/|$) { |
|
|
|
client_max_body_size 30m; |
|
|
|
location ~ [^/]\.php(/|$) { |
|
|
|
fastcgi_split_path_info ^(.+?\.php)(/.*)$; |
|
|
|
fastcgi_pass unix:/var/run/php5-fpm.sock; |
|
|
|
fastcgi_index index.php; |
|
|
|
|