Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

httpd https 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 :: bash create empty array 
Shell :: shell load file as variable 
Shell :: add your SSH key to the ssh-agent. 
Shell :: apt install xfce 
Shell :: gif to webm ffmpeg 
Shell :: ssh key pair github 
Shell :: golang 
Shell :: git see current commit message 
Shell :: linux ogg to wav 
Shell :: npm sequelize 
Shell :: compress folder ubuntu 
Shell :: .gitignore not working 
Shell :: how to get updates in linux 
Shell :: How to remove docker.io from Ubuntu? 
Shell :: github add image in readme 
Shell :: how to install zsh in fedora 
Shell :: istio grafana 
Shell :: git no ssl verify 
Shell :: ls all files including hidden powershell 
Shell :: install ros foxy 
Shell :: you failed to push some refs to git 
Shell :: cd into differernt drive 
Shell :: git global noverify 
Shell :: add user ubuntu 20.04 
Shell :: color logging python 
Shell :: run redis in background ubuntu 
Shell :: vuforia git url 
Shell :: merge feature branch into master 
Shell :: How can I reset or revert a file to a specific revision? 
Shell :: uninstall node 
ADD CONTENT
Topic
Content
Source link
Name
3+2 =