Skip to content

Commit 3be4ac6

Browse files
authored
Merge pull request #1287 from pi-hole/dev
Dev-> master
2 parents 6b13b9b + 312419b commit 3be4ac6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/s6/debian-root/usr/local/bin/bash_functions.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -349,10 +349,10 @@ setup_lighttpd_bind() {
349349

350350
setup_web_php_env() {
351351
local config_file
352-
config_file="/etc/lighttpd/conf-enabled/15-pihole-admin.conf"
353-
# if the environment variable VIRTUAL_HOST is not set, or is empty, then set it to the IP address of the container
352+
config_file="/etc/lighttpd/conf-available/15-pihole-admin.conf"
353+
# if the environment variable VIRTUAL_HOST is not set, or is empty, then set it to the hostname of the container
354354
if [ -z "${VIRTUAL_HOST}" ] || [ "${VIRTUAL_HOST}" == "" ]; then
355-
VIRTUAL_HOST="${FTLCONF_LOCAL_IPV4}"
355+
VIRTUAL_HOST="${HOSTNAME}"
356356
fi
357357

358358
for config_var in "VIRTUAL_HOST" "CORS_HOSTS" "PHP_ERROR_LOG" "PIHOLE_DOCKER_TAG" "TZ"; do

0 commit comments

Comments
 (0)