Sign inSign up

c2is/apache-reverseproxy

By c2is

•Updated over 10 years ago

Generic apache as proxy container

Image
0

1.1K

c2is/apache-reverseproxy repository overview

⁠Apache Reverse Proxy container

⁠Generate certificate

To use this container you need to generate the certificate.

If you decide to extends the container add this line in your Dockerfile. The -subj option is used to configure the certificate: C (Country Name) ST (State or Province Name) L (Locality) O (Organization Name) CN (Common Name like FQDN)

exemple:

# Dockerfile
FROM c2is/apache-reverseproxy

RUN openssl req \
    -new \
    -newkey rsa:4096 \
    -days 365 \
    -nodes \
    -x509 \
    -subj "/C=FR/ST=c2is/L=Lyon/O=c2is/CN=www.exemple.com" \
    -keyout /etc/apache2/ssl/proxy.key \
    -out /etc/apache2/ssl/proxy.crt

If you decide to just use the image in docker-compose.yml add the command to the declaration:

reverseproxy:
    image: c2is-apache-reverseproxy
    command: openssl req -new -newkey rsa:4096 -days 365 -nodes -x509 -subj "/C=FR/ST=c2is/L=Lyon/O=c2is/CN=www.exemple.com" -keyout /etc/apache2/ssl/proxy.key -out /etc/apache2/ssl/proxy.crt

Tag summary

Content type

Image

Digest

Size

85.2 MB

Last updated

over 10 years ago

docker pull c2is/apache-reverseproxy