From ccc2b82b3631c2f2f7cc9104da8162e4753fea57 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sat, 13 Mar 2004 11:28:05 +0000 Subject: [PATCH] Detect port the server is running on; needed for redirects and other full URLs --- includes/DefaultSettings.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 332d486a8b..11eae782a5 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -11,7 +11,9 @@ $wgVersion = "1.3.0pre-alpha"; $wgSitename = "MediaWiki"; # Please customize! $wgMetaNamespace = FALSE; # will be same as you set $wgSitename -$wgServer = "http://" . getenv( "SERVER_NAME" ); +$wgServer = "http://" . $_SERVER["SERVER_NAME"]; +if( $_SERVER["SERVER_PORT"] != 80 ) $wgServer .= ":" . $_SERVER["SERVER_PORT"]; + $wgScriptPath = "/wiki"; # ATTN: Old installations used wiki.phtml and redirect.phtml - -- 2.20.1