|
@@ -248,7 +248,8 @@
|
|
|
$sitecontent = str_replace("test301.com",$domain,$sitecontent);
|
|
|
}
|
|
|
if($https == 0) {
|
|
|
- $sitecontent = str_replace($domain,"test301.com",$sitecontent);
|
|
|
+ $sitecontent = str_replace("server_name ".$domain,"server_name test301.com",$sitecontent);
|
|
|
+ $sitecontent = str_replace("https://".$domain,"https://test301.com",$sitecontent);
|
|
|
}
|
|
|
$mysite = fopen($confdir.$domain.".conf", "w") or die("Unable to open file!");
|
|
|
fwrite($mysite, $sitecontent);
|