Skip to content

Commit

Permalink
#928542 By brianmercer: name-based virtual host causes module to fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Smoothify committed Oct 2, 2010
1 parent 84a158e commit 4b15b21
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions filefield_nginx_progress.module
Expand Up @@ -107,15 +107,7 @@ function filefield_nginx_progress_process($element, $edit, &$form_state, $form)
*/
function nginx_progress_fetch($key) {
// Find root url of server
if (isset($_SERVER['SERVER_NAME'])) {
$domain = $_SERVER['SERVER_NAME'];
if ($_SERVER['SERVER_PORT'] != 80) {
$domain .= ':' . $_SERVER['SERVER_PORT'];
}
}
elseif (isset($_SERVER['HTTP_HOST'])) {
$domain = $_SERVER['HTTP_HOST'];
}
$domain = $_SERVER['HTTP_HOST'];
$proto = $_SERVER['HTTPS'] ? 'https://' : 'http://';
$base_url = $proto . $domain;

Expand Down

0 comments on commit 4b15b21

Please sign in to comment.