Project

General

Profile

nest $HTTP['host'] inside $SERVER['socket'] not working

Added by jeanluca over 10 years ago

Hi

I want to configure two domains both for https as follows

    $SERVER["socket"] == ":443" {
        $HTTP["host"] == "example.com" { .... }
        $HTTP["host"] == "dev.example.com" { .... }
    }

However, this doesn't work. For example, "example.com" is accessible if I do

  
    $SERVER["socket"] == ":443" {
        var.server_name = "example.com" 
        ....
    }

Any suggestions how I can setup the 2 domains ?