Apache HTTPD docker image based on Ubuntu Bionic.
4.5K
Apache HTTPD docker image based on Ubuntu Bionic.
Sources to build this docker image can be found here.
This Apache HTTPD docker image contains the following software components:
These Apache HTTPD modules are activated by default:
These Apache HTTPD ports are exposed:
When you start the Apache HTTPD container, you can adjust the configuration by passing one or more environment variables on the docker run command line:
SSL_FOLDER/opt/ssl/apache2docker run --rm -p 80:80 -p 443:443 chrisipa/apache
sudo mkdir -p /var/www/html
sudo cp files /var/www/html
docker run -d --name apache -p 80:80 -p 443:443 -v /var/www/html:/var/www/html chrisipa/apache
Create CA Certificate:
openssl req -new -x509 -days 36500 -nodes \
-out ca.crt \
-keyout ca.key
Create Certificate Serial Number:
echo -ne '01' > ca.serial
Create Server CSR:
openssl req -new -days 36500 -nodes \
-out server.csr \
-keyout server.key
Create Server Certificate:
openssl x509 -days 36500 \
-CA ca.crt \
-CAkey ca.key \
-CAserial ca.serial \
-in server.csr \
-req \
-out server.crt
Content type
Image
Digest
Size
97.6 MB
Last updated
about 6 years ago
docker pull chrisipa/apache