Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

368
Vistas
How to add vhost in docker apache server?

Hi all and thanks for assistance

I want add virtual host to my apache server in docker but can not figure it out in the right way and does not work. Do you know why ?

I'm using windows 10 operating system and webdevops docker image for php-apache.

my docker-compose.yml

www:
depends_on:
- mysql
- mail
image: webdevops/php-apache:7.4
volumes:
- "./www:/var/www/html"
- "./apache/vhost.conf:/opt/docker/etc/httpd/vhost.conf"
- "./apache/hosts:/etc/hosts"
environment:
- VIRTUAL_HOST=pharma.test,tests.dev
ports:
- 8080:80
env_file:
- .env

my vhost.conf

<VirtualHost *:80>
ServerName pharma.test
DocumentRoot /var/www/html/pharma/public

Thanks all for your help

over 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda