Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Comment in project nginx.yml causes invalid error message in /vhosts.php #1010

Open
3 of 5 tasks
martin-rueegg opened this issue Nov 4, 2023 · 0 comments
Open
3 of 5 tasks
Assignees
Labels
bug triage Needs triaging

Comments

@martin-rueegg
Copy link

Have you already looked into this bug?

(Optional) Error message

No Host DNS record found. Add the following to /etc/hosts: 127.0.0.1 host.example.com

What went wrong?

If in a project template there is a comment (line starting with a #) that is not in line with yaml intendation, no vhost conf in http's /etc/httpd/vhost.d/ is created. But neither is a message printed to the docker-compose output.

Maybe I'm just missing the error output, but the error indicated in /vhosts.php is certainly misleading.

Expected behaviour

Instead of

No Host DNS record found. Add the following to /etc/hosts: 127.0.0.1 host.example.com

a message like vhost configuration missing (since the file does not exist in http's /etc/httpd/vhost.d/ directory) or even better vhost configuratoin could not be generated would be more helpful.

How can we reproduce the bug?

Copy the

and e.g. comment out the line

      error_log    "__ERROR_LOG__" warn;

like so:

#      error_log    "__ERROR_LOG__" warn;

(re)start devilbox and check the "Virtual Hosts" page (/vhosts.php, http://localhost/vhosts.php) of the Devilbox control panel.

Removing the hash or adding it just in front of the error_log and restart the devilbox and all is well:

      #error_log    "__ERROR_LOG__" warn;

Host Operating System

Linux

Host Platform (amd64, arm64, other)

amd64

(Linux only) Is SELinux enabled?

Yes, SELinux is enabled

Docker version

Docker version 24.0.6, build ed223bc

Docker Compose version

docker-compose version 1.29.2, build unknown

Devilbox version

986f046 (HEAD -> master, origin/master, origin/HEAD) Merge pull request #957 from nickchomey/patch-1

Have you removed stopped containers before starting?

Yes

Have you pulled latest Docker images before starting?

Yes

Devilbox start command

docker-compose down && docker-compose up php httpd mysql

Config: .env file

# cat .env | grep -vE '^#|^$'
DEBUG_ENTRYPOINT=2
DOCKER_LOGS=0
DEVILBOX_PATH=.
LOCAL_LISTEN_ADDR=
TLD_SUFFIX=c.example.com
EXTRA_HOSTS=
NEW_UID=33
NEW_GID=33
TIMEZONE=Europe/Zurich
DNS_CHECK_TIMEOUT=1
DEVILBOX_UI_SSL_CN=devilbox.c.example.com,localhost,*.localhost,devilbox,*.devilbox,httpd
DEVILBOX_UI_PROTECT=1
DEVILBOX_UI_PASSWORD='***************'
DEVILBOX_UI_ENABLE=1
DEVILBOX_VENDOR_PHPMYADMIN_AUTOLOGIN=1
DEVILBOX_VENDOR_PHPPGADMIN_AUTOLOGIN=1
DEVILBOX_HTTPD_MGMT_USER=supervisord
DEVILBOX_HTTPD_MGMT_PASS=*********
PHP_SERVER=8.2
HTTPD_FLAVOUR=alpine
HTTPD_SERVER=nginx-mainline
MYSQL_SERVER=mariadb-10.6
PGSQL_SERVER=14-alpine
REDIS_SERVER=6.2-alpine
MEMCD_SERVER=1.6-alpine
MONGO_SERVER=5.0
MOUNT_OPTIONS=
HOST_PATH_HTTPD_DATADIR=/store/data/www
HOST_PATH_BACKUPDIR=/store/backup
HOST_PATH_SSH_DIR=~/.ssh
PHP_MODULES_ENABLE=
PHP_MODULES_DISABLE=oci8,PDO_OCI,pdo_sqlsrv,sqlsrv,rdkafka,swoole,psr,phalcon
PHP_MAIL_CATCH_ALL=2
PHP_PROJECT_AUTOSTART_DIR=.devilbox/autostart
HOST_PORT_HTTPD=80
HOST_PORT_HTTPD_SSL=443
HTTPD_HTTP2_ENABLE=0
HTTPD_VHOST_SSL_TYPE=both
HTTPD_DOCROOT_DIR=htdocs
HTTPD_TEMPLATE_DIR=.devilbox
HTTPD_BACKEND_TIMEOUT=86400
HTTPD_NGINX_WORKER_PROCESSES=auto
HTTPD_NGINX_WORKER_CONNECTIONS=1024
MYSQL_ROOT_PASSWORD=*************
HOST_PORT_MYSQL=3306
PGSQL_ROOT_USER=postgres
PGSQL_ROOT_PASSWORD=
PGSQL_HOST_AUTH_METHOD=trust
HOST_PORT_PGSQL=5432
HOST_PORT_REDIS=6379
REDIS_ARGS=
HOST_PORT_MEMCD=11211
HOST_PORT_MONGO=27017
HOST_PORT_BIND=1053
BIND_DNS_RESOLVER=8.8.8.8,8.8.4.4
BIND_DNSSEC_VALIDATE=no
BIND_TTL_TIME=
BIND_REFRESH_TIME=
BIND_RETRY_TIME=
BIND_EXPIRY_TIME=
BIND_MAX_CACHE_TIME=
BIND_LOG_DNS_QUERIES=1

Config: docker-compose.override.yml

grep -vE '^\s*#|^$' docker-compose.override.yml
---
version: '2.3'
x-app: &default-php
  env_file:
    - ./.env
  environment:
    - DEBUG_ENTRYPOINT=${DEBUG_ENTRYPOINT:-2}
    - DOCKER_LOGS=1
    - ENABLE_MODULES=${PHP_MODULES_ENABLE}
    - DISABLE_MODULES=${PHP_MODULES_DISABLE}
    - ENABLE_MAIL=${PHP_MAIL_CATCH_ALL:-2}
  dns:
    - 172.16.238.100
  depends_on:
    - bind
services:
  httpd:
    volumes:
      - /etc/example:/etc/example:ro${MOUNT_OPTIONS}
  mysql:
    command: --log-bin=logs/mysql-bin
    volumes:
      - /etc/example:/etc/example:ro${MOUNT_OPTIONS}
  php:
    extra_hosts:
      host.docker.internal: 172.17.0.1
      _host.docker.internal: host-gateway
    volumes:
      - /etc/example:/etc/example:ro${MOUNT_OPTIONS}
  php54:
    <<: *default-php
    image: devilbox/php-fpm:5.4-prod-0.150
    hostname: php54
    networks:
      app_net:
        ipv4_address: 172.16.238.201
    volumes:
      - ${DEVILBOX_PATH}/cfg/php-ini-5.4:/etc/php-custom.d:ro${MOUNT_OPTIONS}
      - ${DEVILBOX_PATH}/cfg/php-fpm-5.4:/etc/php-fpm-custom.d:ro${MOUNT_OPTIONS}
      - ${HOST_PATH_HTTPD_DATADIR}:/shared/httpd:rw${MOUNT_OPTIONS}
      - ${DEVILBOX_PATH}/supervisor:/etc/supervisor/custom.d:rw${MOUNT_OPTIONS}
      - devilbox-mail:/var/mail:rw${MOUNT_OPTIONS}
      - /etc/example:/etc/example:ro${MOUNT_OPTIONS}
  php55:
    <<: *default-php
    image: devilbox/php-fpm:5.5-prod-0.150
    hostname: php55
    networks:
      app_net:
        ipv4_address: 172.16.238.202
    volumes:
      - ${DEVILBOX_PATH}/cfg/php-ini-5.5:/etc/php-custom.d:ro${MOUNT_OPTIONS}
      - ${DEVILBOX_PATH}/cfg/php-fpm-5.5:/etc/php-fpm-custom.d:ro${MOUNT_OPTIONS}
      - ${HOST_PATH_HTTPD_DATADIR}:/shared/httpd:rw${MOUNT_OPTIONS}
      - ${DEVILBOX_PATH}/supervisor:/etc/supervisor/custom.d:rw${MOUNT_OPTIONS}
      - devilbox-mail:/var/mail:rw${MOUNT_OPTIONS}
      - /etc/example:/etc/example:ro${MOUNT_OPTIONS}
  php56:
    <<: *default-php
    image: devilbox/php-fpm:5.6-prod-0.150
    hostname: php56
    networks:
      app_net:
        ipv4_address: 172.16.238.203
    volumes:
      - ${DEVILBOX_PATH}/cfg/php-ini-5.6:/etc/php-custom.d:ro${MOUNT_OPTIONS}
      - ${DEVILBOX_PATH}/cfg/php-fpm-5.6:/etc/php-fpm-custom.d:ro${MOUNT_OPTIONS}
      - ${HOST_PATH_HTTPD_DATADIR}:/shared/httpd:rw${MOUNT_OPTIONS}
      - ${DEVILBOX_PATH}/supervisor:/etc/supervisor/custom.d:rw${MOUNT_OPTIONS}
      - devilbox-mail:/var/mail:rw${MOUNT_OPTIONS}
      - /etc/example:/etc/example:ro${MOUNT_OPTIONS}
  php70:
    <<: *default-php
    image: devilbox/php-fpm:7.0-prod-0.150
    hostname: php70
    networks:
      app_net:
        ipv4_address: 172.16.238.204
    volumes:
      - ${DEVILBOX_PATH}/cfg/php-ini-7.0:/etc/php-custom.d:ro${MOUNT_OPTIONS}
      - ${DEVILBOX_PATH}/cfg/php-fpm-7.0:/etc/php-fpm-custom.d:ro${MOUNT_OPTIONS}
      - ${HOST_PATH_HTTPD_DATADIR}:/shared/httpd:rw${MOUNT_OPTIONS}
      - ${DEVILBOX_PATH}/supervisor:/etc/supervisor/custom.d:rw${MOUNT_OPTIONS}
      - devilbox-mail:/var/mail:rw${MOUNT_OPTIONS}
      - /etc/example:/etc/example:ro${MOUNT_OPTIONS}
  php71:
    <<: *default-php
    image: devilbox/php-fpm:7.1-prod-0.150
    hostname: php71
    networks:
      app_net:
        ipv4_address: 172.16.238.205
    volumes:
      - ${DEVILBOX_PATH}/cfg/php-ini-7.1:/etc/php-custom.d:ro${MOUNT_OPTIONS}
      - ${DEVILBOX_PATH}/cfg/php-fpm-7.1:/etc/php-fpm-custom.d:ro${MOUNT_OPTIONS}
      - ${HOST_PATH_HTTPD_DATADIR}:/shared/httpd:rw${MOUNT_OPTIONS}
      - ${DEVILBOX_PATH}/supervisor:/etc/supervisor/custom.d:rw${MOUNT_OPTIONS}
      - devilbox-mail:/var/mail:rw${MOUNT_OPTIONS}
      - /etc/example:/etc/example:ro${MOUNT_OPTIONS}
  php72:
    <<: *default-php
    image: devilbox/php-fpm:7.2-prod-0.150
    hostname: php72
    networks:
      app_net:
        ipv4_address: 172.16.238.206
    volumes:
      - ${DEVILBOX_PATH}/cfg/php-ini-7.2:/etc/php-custom.d:ro${MOUNT_OPTIONS}
      - ${DEVILBOX_PATH}/cfg/php-fpm-7.2:/etc/php-fpm-custom.d:ro${MOUNT_OPTIONS}
      - ${HOST_PATH_HTTPD_DATADIR}:/shared/httpd:rw${MOUNT_OPTIONS}
      - ${DEVILBOX_PATH}/supervisor:/etc/supervisor/custom.d:rw${MOUNT_OPTIONS}
      - devilbox-mail:/var/mail:rw${MOUNT_OPTIONS}
      - /etc/example:/etc/example:ro${MOUNT_OPTIONS}
  php73:
    <<: *default-php
    image: devilbox/php-fpm:7.3-prod-0.150
    hostname: php73
    networks:
      app_net:
        ipv4_address: 172.16.238.207
    volumes:
      - ${DEVILBOX_PATH}/cfg/php-ini-7.3:/etc/php-custom.d:ro${MOUNT_OPTIONS}
      - ${DEVILBOX_PATH}/cfg/php-fpm-7.3:/etc/php-fpm-custom.d:ro${MOUNT_OPTIONS}
      - ${HOST_PATH_HTTPD_DATADIR}:/shared/httpd:rw${MOUNT_OPTIONS}
      - ${DEVILBOX_PATH}/supervisor:/etc/supervisor/custom.d:rw${MOUNT_OPTIONS}
      - devilbox-mail:/var/mail:rw${MOUNT_OPTIONS}
      - /etc/example:/etc/example:ro${MOUNT_OPTIONS}
  php74:
    <<: *default-php
    image: devilbox/php-fpm:7.4-prod-0.150
    hostname: php74
    networks:
      app_net:
        ipv4_address: 172.16.238.208
    volumes:
      - ${DEVILBOX_PATH}/cfg/php-ini-7.4:/etc/php-custom.d:ro${MOUNT_OPTIONS}
      - ${DEVILBOX_PATH}/cfg/php-fpm-7.4:/etc/php-fpm-custom.d:ro${MOUNT_OPTIONS}
      - ${HOST_PATH_HTTPD_DATADIR}:/shared/httpd:rw${MOUNT_OPTIONS}
      - ${DEVILBOX_PATH}/supervisor:/etc/supervisor/custom.d:rw${MOUNT_OPTIONS}
      - devilbox-mail:/var/mail:rw${MOUNT_OPTIONS}
      - /etc/example:/etc/example:ro${MOUNT_OPTIONS}
  php80:
    <<: *default-php
    image: devilbox/php-fpm:8.0-prod-0.150
    hostname: php80
    networks:
      app_net:
        ipv4_address: 172.16.238.209
    volumes:
      - ${DEVILBOX_PATH}/cfg/php-ini-8.0:/etc/php-custom.d:ro${MOUNT_OPTIONS}
      - ${DEVILBOX_PATH}/cfg/php-fpm-8.0:/etc/php-fpm-custom.d:ro${MOUNT_OPTIONS}
      - ${HOST_PATH_HTTPD_DATADIR}:/shared/httpd:rw${MOUNT_OPTIONS}
      - ${DEVILBOX_PATH}/supervisor:/etc/supervisor/custom.d:rw${MOUNT_OPTIONS}
      - devilbox-mail:/var/mail:rw${MOUNT_OPTIONS}
      - /etc/example:/etc/example:ro${MOUNT_OPTIONS}
  php81:
    <<: *default-php
    image: devilbox/php-fpm:8.1-prod-0.150
    hostname: php81
    networks:
      app_net:
        ipv4_address: 172.16.238.210
    volumes:
      - ${DEVILBOX_PATH}/cfg/php-ini-8.1:/etc/php-custom.d:ro${MOUNT_OPTIONS}
      - ${DEVILBOX_PATH}/cfg/php-fpm-8.1:/etc/php-fpm-custom.d:ro${MOUNT_OPTIONS}
      - ${HOST_PATH_HTTPD_DATADIR}:/shared/httpd:rw${MOUNT_OPTIONS}
      - ${DEVILBOX_PATH}/supervisor:/etc/supervisor/custom.d:rw${MOUNT_OPTIONS}
      - devilbox-mail:/var/mail:rw${MOUNT_OPTIONS}
      - /etc/example:/etc/example:ro${MOUNT_OPTIONS}
  php82:
    <<: *default-php
    image: devilbox/php-fpm:8.2-prod-0.150
    hostname: php82
    networks:
      app_net:
        ipv4_address: 172.16.238.211
    volumes:
      - ${DEVILBOX_PATH}/cfg/php-ini-8.2:/etc/php-custom.d:ro${MOUNT_OPTIONS}
      - ${DEVILBOX_PATH}/cfg/php-fpm-8.2:/etc/php-fpm-custom.d:ro${MOUNT_OPTIONS}
      - ${HOST_PATH_HTTPD_DATADIR}:/shared/httpd:rw${MOUNT_OPTIONS}
      - ${DEVILBOX_PATH}/supervisor:/etc/supervisor/custom.d:rw${MOUNT_OPTIONS}
      - devilbox-mail:/var/mail:rw${MOUNT_OPTIONS}
      - /etc/example:/etc/example:ro${MOUNT_OPTIONS}

Config: ./check-config.sh

# ==============================================================================
# Checking git
# ==============================================================================
[SUCC]  git is clean

# ==============================================================================
# Checking .env file
# ==============================================================================
[SUCC]  .env file exists
[SUCC]  .env file is readable
[SUCC]  All variables are present in .env file
[SUCC]  No variables is duplicated in .env file

# ==============================================================================
# Checking .env file values
# ==============================================================================
[ERR]   Variable 'HOST_PATH_HTTPD_DATADIR' directory uid must be 0. Has: 33
[ERR]   Variable 'HOST_PATH_HTTPD_DATADIR' directory gid must be 0. Has: 33
[ERR]   Variable 'NEW_UID' has wrong value: '33'. Should have: 0
[ERR]   Variable 'NEW_GID' has wrong value: '33'. Should have: 0

# ==============================================================================
# Checking required Devilbox core directories exist
# ==============================================================================
[SUCC]  All PHP cfg/ sub directories are present
[SUCC]  All PHP log/ sub directories are present
[SUCC]  All HTTPD cfg/ sub directories are present
[SUCC]  All HTTPD log/ sub directories are present

# ==============================================================================
# Checking devilbox core directory permissions
# ==============================================================================
[SUCC]  All devilbox directories have correct permissions
[SUCC]  All devilbox directories have correct uid
[SUCC]  All devilbox directories have correct gid

# ==============================================================================
# Checking devilbox core file permissions
# ==============================================================================
[SUCC]  All devilbox files have correct permissions
[SUCC]  All devilbox files have correct uid
[SUCC]  All devilbox files have correct gid

# ==============================================================================
# Checking projects permissions
# ==============================================================================
[ERR]   Directory '/store/data/www/.A' should have 0755, 0775 or 0777 permissions. Has: 0700 permissions
[ERR]   Directory '/store/data/www/.B' should have 0755, 0775 or 0777 permissions. Has: 0700 permissions
[ERR]   Directory '/store/data/www/devel.X' should have 0755, 0775 or 0777 permissions. Has: 0750 permissions
[ERR]   Directory '/store/data/www/Y' should have 0755, 0775 or 0777 permissions. Has: 0750 permissions
[ERR]   Directory '/store/data/www/stage.X' should have 0755, 0775 or 0777 permissions. Has: 0750 permissions
[ERR]   Directory '/store/data/www/test.X' should have 0755, 0775 or 0777 permissions. Has: 0750 permissions
[ERR]   Directory '/store/data/www/.A' should have uid '0' Has: '33'
[ERR]   Directory '/store/data/www/.B' should have uid '0' Has: '33'
[ERR]   Directory '/store/data/www/.A' should have gid '0' Has: '33'
[ERR]   Directory '/store/data/www/.B' should have gid '0' Has: '33'
[ERR]   Directory '/store/data/www/devel.X' should have gid '0' Has: '33'
[ERR]   Directory '/store/data/www/Y' should have gid '0' Has: '33'
[ERR]   Directory '/store/data/www/stage.X' should have gid '0' Has: '33'
[ERR]   Directory '/store/data/www/test.X' should have gid '0' Has: '33'

# ==============================================================================
# Checking projects settings
# ==============================================================================
[ERR]   Project '.A.c.example.com' has no valid DNS record
[ERR]   Project '.B.c.example.com' has no valid DNS record
[ERR]   Missing HTTPD_DOCROOT_DIR 'htdocs' in: /store/data/www/.A
[ERR]   Missing HTTPD_DOCROOT_DIR 'htdocs' in: /store/data/www/.B
[ERR]   Missing HTTPD_DOCROOT_DIR 'htdocs' in: /store/data/www/default

# ==============================================================================
# Checking customizations
# ==============================================================================
[NOTE]  [vhost-gen]  Custom Nginx vhost-gen config present in: /store/data/www/devel.X/
[NOTE]  [vhost-gen]  Custom Nginx vhost-gen config present in: /store/data/www/Y/
[NOTE]  [vhost-gen]  Custom Nginx vhost-gen config present in: /store/data/www/stage.X/
[NOTE]  [vhost-gen]  Custom Nginx vhost-gen config present in: /store/data/www/test.X/
[NOTE]  [docker]     Custom docker-compose.override.yml present
[NOTE]  [httpd]      Custom config present in cfg/nginx-stable/
[NOTE]  [httpd]      Custom config present in cfg/nginx-mainline/
[NOTE]  [php.ini]    Custom config present in cfg/php-ini-7.4/
[NOTE]  [php.ini]    Custom config present in cfg/php-ini-8.0/
[NOTE]  [php.ini]    Custom config present in cfg/php-ini-8.1/
[NOTE]  [php.ini]    Custom config present in cfg/php-ini-8.2/
[NOTE]  [php-fpm]    Custom config present in cfg/php-fpm-7.4/
[NOTE]  [php-fpm]    Custom config present in cfg/php-fpm-8.0/
[NOTE]  [php-fpm]    Custom config present in cfg/php-fpm-8.1/
[NOTE]  [php-fpm]    Custom config present in cfg/php-fpm-8.2/
[NOTE]  [mysql]      Custom config present in cfg/mariadb-10.6/
[NOTE]  [startup]    Custom script present in autostart/

# ==============================================================================
# SUMMARY
# ==============================================================================
[ERR]   Found 23 error(s)
[ERR]   Devilbox might not work properly
[ERR]   Fix the issues before submitting a bug report
[NOTE]  17 custom configurations applied. If you encounter issues, reset them first.
[INFO]  Ensure to run 'docker-compose stop; docker-compose rm -f' on .env changes or custom configs

Log: docker-compose logs

httpd_1   | [INFO] Entrypoint debug: 2
httpd_1   | [INFO] Runtime debug: 1
httpd_1   | [INFO] -------------------------------------------------------------------------
httpd_1   | [INFO] Environment Variables (set/default)
httpd_1   | [INFO] -------------------------------------------------------------------------
httpd_1   | [INFO] Variables: General:
httpd_1   | [INFO]     Set     $NEW_UID                    Value:   33
httpd_1   | [INFO]     Set     $NEW_GID                    Value:   33
httpd_1   | [INFO]     Set     $TIMEZONE                   Value:   Europe/Zurich
httpd_1   | [INFO] Variables: Main Vhost:
httpd_1   | [INFO]     Set     $MAIN_VHOST_ENABLE          Value:   1
httpd_1   | [INFO]     Unset   $MAIN_VHOST_DOCROOT_DIR     Default: htdocs
httpd_1   | [INFO]     Unset   $MAIN_VHOST_TEMPLATE_DIR    Default: cfg
httpd_1   | [INFO]     Set     $MAIN_VHOST_ALIASES_ALLOW   Value:   /devilbox-api/:/var/www/default/api, /vhost.d/:/etc/httpd
httpd_1   | [INFO]     Unset   $MAIN_VHOST_ALIASES_DENY    Default: /\.git, /\.ht.*
httpd_1   | [INFO]     Set     $MAIN_VHOST_BACKEND         Value:   conf:phpfpm:tcp:172.16.238.10:9000
httpd_1   | [INFO]     Set     $MAIN_VHOST_BACKEND_TIMEOUT Value:   86400
httpd_1   | [INFO]     Set     $MAIN_VHOST_SSL_TYPE        Value:   both
httpd_1   | [INFO]     Set     $MAIN_VHOST_SSL_CN          Value:   *.c.example.com,localhost,*.localhost,devilbox,*.devilbox,httpd
httpd_1   | [INFO]     Set     $MAIN_VHOST_STATUS_ENABLE   Value:   1
httpd_1   | [INFO]     Set     $MAIN_VHOST_STATUS_ALIAS    Value:   /devilbox-httpd-status
httpd_1   | [INFO] Variables: Mass Vhost:
httpd_1   | [INFO]     Set     $MASS_VHOST_ENABLE          Value:   1
httpd_1   | [INFO]     Set     $MASS_VHOST_DOCROOT_DIR     Value:   htdocs
httpd_1   | [INFO]     Set     $MASS_VHOST_TEMPLATE_DIR    Value:   .devilbox
httpd_1   | [INFO]     Set     $MASS_VHOST_ALIASES_ALLOW   Value:   /devilbox-api/:/var/www/default/api:http(s)?://(.*)$
httpd_1   | [INFO]     Unset   $MASS_VHOST_ALIASES_DENY    Default: /\.git, /\.ht.*
httpd_1   | [INFO]     Set     $MASS_VHOST_BACKEND         Value:   conf:phpfpm:tcp:172.16.238.10:9000
httpd_1   | [INFO]     Set     $MASS_VHOST_BACKEND_REWRITE Value:   file:backend.cfg
httpd_1   | [INFO]     Set     $MASS_VHOST_BACKEND_TIMEOUT Value:   86400
httpd_1   | [INFO]     Set     $MASS_VHOST_SSL_TYPE        Value:   both
httpd_1   | [INFO]     Set     $MASS_VHOST_TLD_SUFFIX      Value:   .c.example.com
httpd_1   | [INFO] Variables: Misc:
httpd_1   | [INFO]     Set     $WORKER_CONNECTIONS         Value:   1024
httpd_1   | [INFO]     Set     $WORKER_PROCESSES           Value:   auto
httpd_1   | [INFO]     Set     $HTTP2_ENABLE               Value:   0
httpd_1   | [INFO]     Set     $DOCKER_LOGS                Value:   0
httpd_1   | [INFO] -------------------------------------------------------------------------
httpd_1   | [INFO] Validate Settings
httpd_1   | [INFO] -------------------------------------------------------------------------
httpd_1   | [INFO] Settings: General:
httpd_1   | [OK]       Valid   $NEW_UID                    User ID (uid)       33
httpd_1   | [OK]       Valid   $NEW_GID                    Group ID (gid)      33
httpd_1   | [OK]       Valid   $TIMEZONE                   Timezone            Europe/Zurich
httpd_1   | [INFO] Settings: Main Vhost:
httpd_1   | [OK]       Valid   $MAIN_VHOST_ENABLE          Default vhost       Enabled
httpd_1   | [OK]       Valid   $MAIN_VHOST_DOCROOT_DIR     Document root:      /var/www/default/htdocs
httpd_1   | [OK]       Valid   $MAIN_VHOST_TEMPLATE_DIR    Template dir        /var/www/default/cfg
httpd_1   | [OK]       Valid   $MAIN_VHOST_ALIASES_ALLOW   Defined Aliases     /devilbox-api/, /vhost.d/
httpd_1   | [OK]       Valid   $MAIN_VHOST_ALIASES_DENY    Defined Aliases     /\.git, /\.ht.*
httpd_1   | [OK]       Valid   $MAIN_VHOST_BACKEND         PHP via PHP-FPM     Remote: tcp://172.16.238.10:9000
httpd_1   | [OK]       Valid   $MAIN_VHOST_BACKEND_TIMEOUT Timeout:            86400sec
httpd_1   | [OK]       Valid   $MAIN_VHOST_SSL_TYPE        Vhost protocol      HTTP and HTTPS
httpd_1   | [OK]       Valid   $MAIN_VHOST_SSL_CN          SSL cert subject    CN = devilbox.c.example.com,localhost,*.localhost,devilbox,*.devilbox,httpd
httpd_1   | [OK]       Valid   $MAIN_VHOST_STATUS_ENABLE   Status page         Enabled
httpd_1   | [OK]       Valid   $MAIN_VHOST_STATUS_ALIAS    Status page URL     /devilbox-httpd-status
httpd_1   | [INFO] Settings: Mass Vhost:
httpd_1   | [OK]       Valid   $MASS_VHOST_ENABLE          Mass vhost          Enabled
httpd_1   | [OK]       Valid   $MASS_VHOST_DOCROOT_DIR     Document root:      /shared/httpd/<project>/htdocs
httpd_1   | [OK]       Valid   $MASS_VHOST_TEMPLATE_DIR    Template dir        /shared/httpd/<project>/.devilbox
httpd_1   | [OK]       Valid   $MASS_VHOST_ALIASES_ALLOW   Defined Aliases     /devilbox-api/
httpd_1   | [OK]       Valid   $MASS_VHOST_ALIASES_DENY    Defined Aliases     /\.git, /\.ht.*
httpd_1   | [OK]       Valid   $MASS_VHOST_BACKEND         PHP via PHP-FPM     Remote: tcp://172.16.238.10:9000
httpd_1   | [OK]       Valid   $MASS_VHOST_BACKEND_REWRITE Backend overwrite   /shared/httpd/<project>/.devilbox/backend.cfg
httpd_1   | [OK]       Valid   $MASS_VHOST_BACKEND_TIMEOUT Timeout:            86400sec
httpd_1   | [OK]       Valid   $MASS_VHOST_SSL_TYPE        Vhost protocol      HTTP and HTTPS
httpd_1   | [OK]       Valid   $MASS_VHOST_TLD_SUFFIX      Vhost domain        <project>.c.example.com
httpd_1   | [INFO] Settings: Misc:
httpd_1   | [OK]       Valid   $WORKER_CONNECTIONS         worker_connections  1024
httpd_1   | [OK]       Valid   $WORKER_PROCESSES           worker_processes    auto
httpd_1   | [OK]       Valid   $HTTP2_ENABLE               HTTP/2              Disabled
httpd_1   | [OK]       Valid   $DOCKER_LOGS                Log to              stdout and stderr
httpd_1   | [INFO] -------------------------------------------------------------------------
httpd_1   | [INFO] Apply Settings
httpd_1   | [INFO] -------------------------------------------------------------------------
httpd_1   | [INFO] User with 33 already exists: xfs
httpd_1   | [INFO] Changing UID of xfs to 9876
httpd_1   | [INFO] Setting uid to 33 (user: nginx)
httpd_1   | uid=33(nginx) gid=101(nginx) groups=101(nginx),101(nginx)
httpd_1   | [INFO] Group with 33 already exists: xfs
httpd_1   | [INFO] Changing GID of xfs to 9876
httpd_1   | [INFO] Setting gid to 33 (group: nginx)
httpd_1   | uid=33(nginx) gid=33(nginx) groups=33(nginx),33(nginx)
httpd_1   | [INFO] Setting timezone to Europe/Zurich
httpd_1   | [INFO] Current date: Sat Nov  4 14:12:30 CET 2023
httpd_1   | [INFO] vhost-gen: no custom global template found in: /etc/vhost-gen.d/nginx.yml
httpd_1   | vhost-gen: [INFO] Loading configuration file        (-c): /etc/vhost-gen/main.yml
httpd_1   | vhost-gen: [INFO] Loading vhost template (global)   (-t): /etc/vhost-gen/templates-main/nginx.yml
httpd_1   | vhost-gen: [INFO] Loading vhost template (override) (-o): /var/www/default/cfg/nginx.yml
httpd_1   | vhost-gen: [INFO] Override Vhost template not found: /var/www/default/cfg/nginx.yml
httpd_1   | vhost-gen: [INFO] Creating vhost type: https and http (both)
httpd_1   | vhost-gen: [INFO] Using vhost name: localhost
httpd_1   | vhost-gen: [INFO] Log setting: dir -> True
httpd_1   | vhost-gen: [INFO] Log setting: Not specified
httpd_1   | vhost-gen: [INFO] Vhost config written to: /etc/httpd/conf.d/localhost.conf
httpd_1   | [INFO] Existing Certificate Authority files found in: /ca
httpd_1   | cert-gen: [INFO] Create CSR file: /etc/httpd/cert/main/localhost.csr
httpd_1   | cert-gen: [INFO] Create CRT file: /etc/httpd/cert/main/localhost.crt
httpd_1   | cert-gen: [INFO] Verify CRT file: /etc/httpd/cert/main/localhost.crt
httpd_1   | cert-gen: [INFO] Verify CRT against CA file: /ca/devilbox-ca.crt
httpd_1   | [INFO] Fixing ownership (recursively) in: /ca
httpd_1   | [INFO] Setting Nginx worker_processes to: auto
httpd_1   | [INFO] Setting Nginx worker_connections to: 1024
httpd_1   | [INFO] -------------------------------------------------------------------------
httpd_1   | [INFO] Main Entrypoint
httpd_1   | [INFO] -------------------------------------------------------------------------
httpd_1   | [DONE] Starting supervisord: 4.2.4 [HTTPD: nginx/1.23.3]

(Optional) Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug triage Needs triaging
Projects
None yet
Development

No branches or pull requests

2 participants