Setup nginx on Heroku

This commit is contained in:
James Brooks
2015-02-21 14:11:09 +00:00
parent 943c56c40f
commit 4fee5125c7
3 changed files with 14 additions and 2 deletions

View File

@@ -57,7 +57,8 @@
"index-document": "index.php",
"log-files": [
"app/storage/logs/laravel.log"
]
],
"nginx-includes": ["nginx.conf"]
}
},
"scripts": {

2
composer.lock generated
View File

@@ -4,7 +4,7 @@
"Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
"hash": "aa66851e963b6a867ebb7bef58c27015",
"hash": "d2ac0b89f83386d9d2ec43cb4e488318",
"packages": [
{
"name": "cachethq/segment",

11
nginx.conf Normal file
View File

@@ -0,0 +1,11 @@
location / {
try_files $uri $uri/ /index.php?$query_string;
}
if (!-d $request_filename) {
rewrite ^/(.+)/$ /$1 permanent;
}
location ~ /\.ht {
deny all;
}