Last active
June 3, 2022 20:20
-
-
Save koenhendriks/795140351a4eaab9af75df2c04efedda to your computer and use it in GitHub Desktop.
Laravel Docroot IspConfig 3.1 Nginx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location / { | |
root {DOCROOT}public | |
if ($scheme != "https") { | |
rewrite ^ https://$http_host$request_uri? permanent; | |
} | |
try_files /public/$uri /public/$uri/ /public/index.php?$query_string; | |
} |
I haven't used ISP Config in > 5 years but thanks for the feedback, I hope it's helpful for other that land here from Google.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Like 2 should be terminated by a semicolon.
EDIT: You should use this directive in ispconfig for laravel since it fixes all problems I encountered: