[drupal-devel] [bug] settings for multiple sites with port

pbcomm drupal-devel at drupal.org
Thu Aug 11 22:39:09 UTC 2005


Issue status update for 
http://drupal.org/node/28719
Post a follow up: 
http://drupal.org/project/comments/add/28719

 Project:      Drupal
 Version:      4.6.0
 Component:    base system
 Category:     bug reports
 Priority:     normal
 Assigned to:  pbcomm
 Reported by:  pbcomm
 Updated by:   pbcomm
 Status:       patch (ready to be committed)

I have 2 sites running on port 85 (I can not have them on port 80
because of the provider) and can not create settings directory for any
of them, ":" is not a valid char for directory name (Windows Host).


Example: http://name.domain.com:81/site/


My suggestion is to change the following line:


        $server = explode('.', rtrim($_SERVER['HTTP_HOST'], '.'));


to:


        $tmp = parse_url(rtrim($_SERVER['HTTP_HOST'], '.'));
        $server = explode('.', $tmp['host']);




pbcomm




More information about the drupal-devel mailing list