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

is it possible to create virtual hosts for apache config? #14

Open
HejVkt opened this issue Sep 22, 2019 · 1 comment
Open

is it possible to create virtual hosts for apache config? #14

HejVkt opened this issue Sep 22, 2019 · 1 comment

Comments

@HejVkt
Copy link

HejVkt commented Sep 22, 2019

I have tried to create some folders in public_html and made some changes to apache config, but it haven't worked

@magnusviri
Copy link

magnusviri commented Apr 28, 2021

Did you restart your container after making changes? Additionally, I put my config in a volume so I can make changes to it without having to rebuild the container.

docker-compose.yml

  apache:
    volumes:
      - /var/containers/public_html:/var/www/html
      - /var/containers/apache/conf:/etc/apache2

And in the apache Dockerfile I changed the last line like this.

RUN echo "Include /etc/apache2/my_config.conf" >> /usr/local/apache2/conf/httpd.conf

The danger of this is if /etc/apache2/my_config.conf doesn't exist or has errors apache wont start.

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

No branches or pull requests

2 participants