We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7491d3c commit f142723Copy full SHA for f142723
2 files changed
bin/v-change-sys-port
@@ -56,7 +56,7 @@ check_hestia_demo_mode
56
57
# Get original port
58
LISTEN_ROWS=$(cat ${NGINX_CONFIG} | grep -c "listen")
59
-ORIGINAL_PORT=$(cat ${NGINX_CONFIG} | sed 's/#IPV4[ \t\listen[ \t][^0-9]*//g' | sed 's/[^0-9]*//g')
+ORIGINAL_PORT=$(cat ${NGINX_CONFIG} | grep -m1 "listen" | sed 's/[^0-9]*//g')
60
61
# Check if port is different to nginx.conf
62
if [ "$ORIGINAL_PORT" = "$PORT" ]; then
src/deb/nginx/nginx.conf
@@ -115,8 +115,7 @@ http {
115
116
# Vhost
117
server {
118
-#IPV4 listen 8083 ssl;
119
-#IPV6 listen [::]:8083 ssl;
+ listen 8083 ssl;
120
server_name _;
121
root /usr/local/hestia/web;
122
# Fix error "The plain HTTP request was sent to HTTPS port"
0 commit comments