Domain pointers (SSL)

Mr. Jinx

Verified User
Joined
May 5, 2006
Messages
57
I created a domain pointer (no alias) and noticed the following:

http://domain1 > http://domain2 = working fine
https://domain1 > https//domain2 = not working

This is because SSL is not defined in nginx_server_redirect.conf.
Is this by design, or just a small missing feature?

I changed nginx_server_redirect.conf to this:
Code:
server
{
        listen |IP|:|PORT_80|;
        |MULTI_IP|
        server_name |POINTER| www.|POINTER|;
        rewrite     ^ http://www.|DOMAIN|$request_uri? permanent;
}

server
{
        listen |IP|:|PORT_443| ssl;
        |$/usr/local/bin/php
<?php
$data = <<<END
|MULTI_IP|
END;
$data = str_replace(":80;", ":443 ssl;", $data);
echo  $data;
?>
DONE|
        server_name |POINTER| www.|POINTER|;
        rewrite     ^ https://www.|DOMAIN|$request_uri? permanent;
}

This seems to be working fine!
 
Hello,

The thread is now moved to CustomBuild 2 subforum, so it could be easily found and the issue fixed by CustomBuild 2 developers.

Regards,
Alex.
 
By (old) design. The Apache redirect doesn't use 443 either, only 80 (redirect_virtual_host.conf)
Most people use the alias option, but that's beside the point.

John
 
Back
Top