21 lines
462 B
Plaintext
21 lines
462 B
Plaintext
location / {
|
|
# try to serve file directly, fallback to rewrite
|
|
try_files $uri @rewriteapp;
|
|
}
|
|
|
|
location @rewriteapp {
|
|
# rewrite all to index.php
|
|
rewrite ^(.*)$ /index.php?p=$1 last;
|
|
}
|
|
|
|
location ~ ^/(index)\.php(/|$) {
|
|
fastcgi_pass heroku-fcgi;
|
|
fastcgi_split_path_info ^(.+\.php)(/.*)$;
|
|
include fastcgi_params;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
fastcgi_param HTTPS on;
|
|
}
|
|
|
|
# Global Config
|
|
client_max_body_size 20M;
|