Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

httpd https

# 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 initialize array 
Shell :: bash store file in array 
Shell :: how to install anything on kali linux 
Shell :: pip install bootstrap 
Shell :: install build-essential centos 8 
Shell :: send giphy on slack 
Shell :: install golang 
Shell :: kill a process at a port 
Shell :: random hex chars bash 
Shell :: watch distro linux 
Shell :: tar compress 
Shell :: virtualbox guest additions ubuntu 20.04 install 
Shell :: conda install parse 
Shell :: powershell writeline 
Shell :: how to pull remote branch into local branch 
Shell :: how to install cassandra 
Shell :: bash array of strings 
Shell :: find file in linux with regex 
Shell :: github get parent branch 
Shell :: spyder 4.2.5 requires pyqt5<5.13, but you have pyqt5 5.15.4 which is incompatible. 
Shell :: bash if number equals 
Shell :: npm dev server 
Shell :: volume buttons not working ubuntu 18.04 
Shell :: how to install opencv in anaconda, jupyter notebook 
Shell :: git remove without deleting 
Shell :: ubuntu power settings high performance 
Shell :: git change user of last commit 
Shell :: vendor/autoload.php download 
Shell :: next js npm install 
Shell :: git-clone command not found ubuntu 
ADD CONTENT
Topic
Content
Source link
Name
7+6 =