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:
This seems to be working fine!
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!