Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1250
http_host.txt
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Authored By
•
bzimport
Nov 21 2014, 6:48 PM
2014-11-21 18:48:03 (UTC+0)
Size
868 B
Referenced Files
None
Subscribers
None
http_host.txt
View Options
Index: DefaultSettings.php
===================================================================
RCS file: /cvsroot/wikipedia/phase3/includes/DefaultSettings.php,v
retrieving revision 1.158
diff -u -r1.158 DefaultSettings.php
--- DefaultSettings.php 31 Aug 2004 10:23:54 -0000 1.158
+++ DefaultSettings.php 2 Sep 2004 21:57:51 -0000
@@ -24,8 +24,12 @@
if ( @$wgCommandLineMode ) {
$wgServer = $wgProto.'://localhost';
} else {
- $wgServer = $wgProto.'://' . $_SERVER['SERVER_NAME'];
- if( $_SERVER['SERVER_PORT'] != 80 ) $wgServer .= ":" . $_SERVER['SERVER_PORT'];
+ if (isset($_SERVER['HTTP_HOST'])) {
+ $wgServer = $wgProto.'://' . $_SERVER['HTTP_HOST'];
+ } else {
+ $wgServer = $wgProto.'://' . $_SERVER['SERVER_NAME'];
+ if( $_SERVER['SERVER_PORT'] != 80 ) $wgServer .= ":" . $_SERVER['SERVER_PORT'];
+ }
}
unset($wgProto);
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1158
Default Alt Text
http_host.txt (868 B)
Attached To
Mode
T2273: Making MediaWiki reversed proxying able (use HTTP_HOST for redirects if set)
Attached
Detach File
Event Timeline
Log In to Comment