Dockerfile icon indicating copy to clipboard operation
Dockerfile copied to clipboard

webdevops/apache WEB_ALIAS_DOMAIN doesnt work

Open guebwia opened this issue 4 years ago • 1 comments

Hi,

someone has any idea, why the web alias doesnt work, only https://127.0.0.1 work.

Documentation

DOCKER
docker-compose.yaml

version: "3"

services: apache: build:
context: ./apache container_name: "${CONTAINER_PREFIX}apache-server" environment: - WEB_PHP_SOCKET=php:9000 - WEB_DOCUMENT_ROOT=/app/public - WEB_ALIAS_DOMAIN=checkout.wip volumes: - ${WEBROOT}:/app ports: - 443:443 php: build: context: ./php args: - PHP_VERSION=${PHP_VERSION} container_name: "${CONTAINER_PREFIX}php-fpm" volumes: - ${WEBROOT}:/app - ./logs/xdebug:/logs/xdebug - ./logs/php-fpm/:/tmp/xdebug_log

Dockerfile for the apache image

FROM webdevops/apache:latest COPY ./ssl.crt /opt/docker/etc/httpd/ssl/server.crt COPY ./ssl.key /opt/docker/etc/httpd/ssl/server.key

#######################################

Vhost

#######################################

<VirtualHost *:80> ServerName docker.vm ServerAlias menu.wip DocumentRoot "/app/public"

UseCanonicalName Off

<IfVersion < 2.4> Include /opt/docker/etc/httpd/vhost.common.d/.conf = 2.4> IncludeOptional /opt/docker/etc/httpd/vhost.common.d/.conf

<VirtualHost *:443> ServerName docker.vm ServerAlias menu.wip DocumentRoot "/app/public"

UseCanonicalName Off

<IfVersion < 2.4> Include /opt/docker/etc/httpd/vhost.common.d/.conf = 2.4> IncludeOptional /opt/docker/etc/httpd/vhost.common.d/.conf

Include /opt/docker/etc/httpd/vhost.ssl.conf

Thanks for help!

guebwia avatar Jan 31 '22 17:01 guebwia

Closed as old Issue without any comments in the last months.

Kanti avatar Apr 13 '26 07:04 Kanti