Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

369
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!