Remove port 443 during installation

This commit is contained in:
danpros 2023-12-04 11:49:53 +07:00
commit 1276b93c91
2 changed files with 2 additions and 2 deletions

View file

@ -1,4 +1,4 @@
; The URL of your blog. Include the http or https if you are using Facebook or Disqus comment. ; The URL of your blog.
site.url = "" site.url = ""
; Your timezone ; Your timezone

View file

@ -105,7 +105,7 @@ class Settings
$dir = ''; $dir = '';
} }
$port = ''; $port = '';
if ($_SERVER["SERVER_PORT"] != "80") { if ($_SERVER["SERVER_PORT"] != "80" && $_SERVER["SERVER_PORT"] != "443") {
$port = ':' . $_SERVER["SERVER_PORT"]; $port = ':' . $_SERVER["SERVER_PORT"];
} }
$scheme = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off' ? 'https' : 'http'; $scheme = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off' ? 'https' : 'http';