|
@@ -29,8 +29,8 @@ if (processForm()) {
|
|
|
addSite($_SESSION['username'], $_POST['dir'], $_POST['domain'], "dns", "http");
|
|
|
|
|
|
$nginxConf = 'server {
|
|
|
- listen [::1]:' . CONF['ht']['https_port'] . ' ssl http2;
|
|
|
- listen 127.0.0.1:' . CONF['ht']['https_port'] . ' ssl http2;
|
|
|
+ listen [' . CONF['ht']['ipv6_listen_address'] . ']:' . CONF['ht']['https_port'] . ' ssl http2;
|
|
|
+ listen ' . CONF['ht']['ipv4_listen_address'] . ':' . CONF['ht']['https_port'] . ' ssl http2;
|
|
|
server_name ' . $_POST['domain'] . ';
|
|
|
root ' . CONF['ht']['ht_path'] . '/' . $_SESSION['username'] . '/' . $_POST['dir'] . ';
|
|
|
|