Setup nginx on Heroku
This commit is contained in:
@@ -57,7 +57,8 @@
|
||||
"index-document": "index.php",
|
||||
"log-files": [
|
||||
"app/storage/logs/laravel.log"
|
||||
]
|
||||
],
|
||||
"nginx-includes": ["nginx.conf"]
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
|
||||
2
composer.lock
generated
2
composer.lock
generated
@@ -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
11
nginx.conf
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user