Merge pull request #12 from frju365/master

Fix nginx conf
This commit is contained in:
liberodark 2019-01-03 00:32:27 +01:00 committed by GitHub
commit cef3cbb5f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,8 @@
root /var/www/pterodactyl/public/;
location ^~ __PATH__ { location ^~ __PATH__ {
alias __FINALPATH__/public/; alias __FINALPATH__/public/;
try_files $uri $uri/ @pterodactyl; try_files $uri $uri/ /index.php?$query_string;
index index.php index.htm index.html; index index.php index.htm index.html;
# Force https # Force https
if ($scheme = http) { if ($scheme = http) {
@ -16,8 +18,3 @@ location ^~ __PATH__ {
fastcgi_param SCRIPT_FILENAME $request_filename; fastcgi_param SCRIPT_FILENAME $request_filename;
} }
} }
location @pterodactyl {
rewrite /(.*)$ /index.php?/$1 last;
}