[wp-trac] [WordPress Trac] #9763: Please include IdeaWebServer in $is_apache (in wp-includes/vars.php)

WordPress Trac wp-trac at lists.automattic.com
Fri May 8 22:22:46 GMT 2009


#9763: Please include IdeaWebServer in $is_apache (in wp-includes/vars.php)
-----------------------------+----------------------------------------------
 Reporter:  burghardt        |       Owner:            
     Type:  enhancement      |      Status:  new       
 Priority:  low              |   Milestone:  Unassigned
Component:  Upgrade/Install  |     Version:  2.7.1     
 Severity:  trivial          |    Keywords:  has-patch 
-----------------------------+----------------------------------------------
 IdeaWebServer is a web server software developed an used in largest polish
 ISP server farm. This software handles over 205972 domains (according to
 http://top100.pl/). I hope its worth including support for IdeaWebServer
 in Wordpress.

 Installing Wordpress on IdeaWebServer is easy (as it is mostly apache
 compatible), but two tweaks need to be done.

 Tweak 1st: include IdeaWebServer in $is_apache

 Tweak 2nd: use only "http://host/redirect" redirections (no "Location:
 /somewere", only "Location: http://host/somewere")

 Here comes the patch (against r11244):
 {{{
 Index: wp-includes/vars.php
 ===================================================================
 --- wp-includes/vars.php        (wersja 11244)
 +++ wp-includes/vars.php        (kopia robocza)
 @@ -65,7 +65,9 @@
   * Whether the server software is Apache or something else
   * @global bool $is_apache
   */
 -$is_apache = ((strpos($_SERVER['SERVER_SOFTWARE'], 'Apache') !== false)
 || (strpos($_SERVER['SERVER_SOFTWARE'], 'LiteSpeed') !== false)) ? true :
 false;
 +$is_apache = ((strpos($_SERVER['SERVER_SOFTWARE'], 'Apache') !== false)
 ||
 +(strpos($_SERVER['SERVER_SOFTWARE'], 'LiteSpeed') !== false) ||
 +(strpos($_SERVER['SERVER_SOFTWARE'], 'IdeaWebServer') !== false)) ? true
 : false;

  /**
   * Whether the server software is IIS or something else
 Index: wp-includes/pluggable.php
 ===================================================================
 --- wp-includes/pluggable.php   (wersja 11244)
 +++ wp-includes/pluggable.php   (kopia robocza)
 @@ -857,6 +857,9 @@

         $location = wp_sanitize_redirect($location);

 +       if ($location[0] == '/')
 +               $location = get_bloginfo('url') . $location;
 +
         if ( $is_IIS ) {
                 header("Refresh: 0;url=$location");
         } else {
 }}}

 [http://www.burghardt.pl/2008/03/wordpress-na-serwerze-
 ideawebserver-w-homepl/ More about this issues (in Polish).]

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9763>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list