Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

httpd ssl docker

# Dockerfile
FROM httpd:latest
RUN sed -i 
		-e 's/^#(Include .*httpd-ssl.conf)/1/' 
		-e 's/^#(LoadModule .*mod_ssl.so)/1/' 
		-e 's/^#(LoadModule .*mod_socache_shmcb.so)/1/' 
		conf/httpd.conf
COPY ./ssl/server.crt /usr/local/apache2/conf/server.crt
COPY ./ssl/server.key /usr/local/apache2/conf/server.key

# docker-compose.yaml
version: "3.1"
services:
  httpd:
    build: .
    container_name: httpd-ssl
    expose:
      - 443
    ports:
      - 443:443
    volumes:
      - ./htdocs:/usr/local/apache2/htdocs
    restart: always
Comment

PREVIOUS NEXT
Code Example
Shell :: magento shell reindex 
Shell :: bash read file into variable 
Shell :: how to save windows lock screen images 
Shell :: how to exit root in linux 
Shell :: concatenate strings batch 
Shell :: optimize github repo 
Shell :: install golang ubuntu 
Shell :: scp folder recursive 
Shell :: change language to english in centos 
Shell :: sequelize installation 
Shell :: tar.gz files 
Shell :: how to install mongodb in ubuntu 20.04 lts fossa 
Shell :: docker run in interactive mode 
Shell :: tinymce django install 
Shell :: push code to git 
Shell :: how to enable port 80 in ubuntu 
Shell :: linux shell echo command with varia ble 
Shell :: clone commit of a branch 
Shell :: flutter plugin installed but in flutter doctor it shows not installed 
Shell :: zinit 
Shell :: mpeg-4 aac decoder h.264 decoder for ubuntu download 
Shell :: conda install camelot py 
Shell :: bash how to remove the first n lines of a file 
Shell :: install mariadb 10.2 ubuntu 16.04 
Shell :: colorlog python 
Shell :: gitignore all log files 
Shell :: uninstall dependencies yarn 
Shell :: how to merge git branch to master 
Shell :: electron app from vue 
Shell :: git restore all 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =