Closed Joohansson closed 4 years ago
You have to provide and mount virtual host files: https://httpd.apache.org/docs/2.4/vhosts/examples.html
Ok but mount where? Using the predefined volumes or like a bind mount. It's not in your readme how to do that. How will apache know the name of my config file? Please explain. I'm a bit new to docker.
The docker image uses a standard apache web-server. So this is a apache thing.
Apache expects its vhosts under /etc/apache2/sites-enabled
.
For further apache questions please consider stackoverflow or google.
Ok that was not super clear reading your description. I had to do a bunch of stuff to get it up and running. I think you should give an example at least for people like me.
docker cp test.conf apache-ssl:/etc/apache2/sites-available
docker exec -it apache-ssl a2ensite test.conf
docker exec -it apache-ssl mkdir /var/www/test
<copy actual web data to /var/www/test>
docker exec -it apache-ssl service apache2 reload
docker exec -it apache-ssl /run_letsencrypt.sh --domain "example.com"
I can't figure out how to use this. I've tried to start the docker with and without the DOMAINS env variable. I get this:
docker exec -it apache-ssl /run_letsencrypt.sh --domains ""