Skip to content

Commit

Permalink
Configure nginx [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
JC5 committed Apr 27, 2017
1 parent f87b531 commit fa818e0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: vendor/bin/heroku-php-nginx public/ -C nginx_app.conf
web: vendor/bin/heroku-php-nginx -C nginx_app.conf public/
12 changes: 6 additions & 6 deletions nginx_app.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
location / {
try_files $uri $uri/ /index.php?$query_string;
autoindex on;
sendfile off;
}
client_max_body_size 300M;
index index.php index.html index.htm;
try_files $uri @rewriteapp;
}

location @rewriteapp {
rewrite ^(.*)$ /index.php$1 last;
}

0 comments on commit fa818e0

Please sign in to comment.