|
@@ -1155,8 +1155,8 @@ function install_web_local_user_interface {
|
1155
|
1155
|
|
1156
|
1156
|
nginx_file=/etc/nginx/sites-available/$local_hostname
|
1157
|
1157
|
{ echo 'server {';
|
1158
|
|
- echo ' listen 80;';
|
1159
|
|
- echo ' listen [::]:80;';
|
|
1158
|
+ echo ' listen 80 default_server;';
|
|
1159
|
+ echo ' #listen [::]:80;';
|
1160
|
1160
|
echo " server_name ${local_hostname};";
|
1161
|
1161
|
echo " root /var/www/${local_hostname}/htdocs;";
|
1162
|
1162
|
echo ' index index.html;';
|
|
@@ -1179,7 +1179,7 @@ function install_web_local_user_interface {
|
1179
|
1179
|
echo '}';
|
1180
|
1180
|
echo '';
|
1181
|
1181
|
echo 'server {';
|
1182
|
|
- echo ' listen 443 ssl;';
|
|
1182
|
+ echo ' listen 443 default_server ssl;';
|
1183
|
1183
|
echo ' #listen [::]:443 ssl;';
|
1184
|
1184
|
echo " server_name ${local_hostname};";
|
1185
|
1185
|
echo " root /var/www/${local_hostname}/htdocs;";
|