diff --git a/public/assets/js/app.js b/public/assets/js/app.js index 2a5f97a..dc11c29 100644 --- a/public/assets/js/app.js +++ b/public/assets/js/app.js @@ -49,7 +49,9 @@ cdn: false, index: 'index.php', - fallback: true, + fallback_html: false, + fallback_php: true, + fallback_php_path: '/api/', php: '7.2', wordpress: false, @@ -341,16 +343,20 @@ return $scope.isWWW() && $scope.data.cdn; }; - $scope.isIndexHtml = function() { - return $scope.data.index === 'index.html'; + $scope.isIndexHTML = function() { + return $scope.data.index === 'index.html' || !$scope.isPHP(); }; - $scope.isIndexPhp = function() { + $scope.isIndexPHP = function() { return $scope.isPHP() && $scope.data.index === 'index.php'; }; - $scope.isFallback = function() { - return $scope.data.fallback && (!$scope.isIndexPhp() || $scope.isPHP); + $scope.isFallbackHTML = function() { + return $scope.data.fallback_html; + }; + + $scope.isFallbackPHP = function() { + return $scope.data.fallback_php && $scope.isPHP(); }; $scope.isPHP = function() { diff --git a/public/index.html b/public/index.html index c8bf972..746190c 100644 --- a/public/index.html +++ b/public/index.html @@ -235,7 +235,7 @@
- +
@@ -248,11 +248,22 @@
-
- - + + +
+
+ + +
+
+ + +
+
+
+ +
+
@@ -389,7 +400,7 @@
-
+
@@ -434,16 +445,6 @@
-
- /etc/nginx/_php.conf - - Copied! -
-
-
-
/etc/nginx/_php_fastcgi.conf