Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

httpd ssl

# 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 :: how to use zsh on mac 
Shell :: bash store file lines in variable 
Shell :: download windows lock screen wallpaper 
Shell :: move files one level up linux 
Shell :: git pull without checkout 
Shell :: youtube-dl ubuntu 
Shell :: set zsh as default linux 
Shell :: install sqlite browser 
Shell :: git reset hard for remote 
Shell :: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory. 
Shell :: files tar.gz 
Shell :: list all node versions mac 
Shell :: linux change username 
Shell :: edit cron jobs linux 
Shell :: switch to remote branch git 
Shell :: check wordpress version cli 
Shell :: multi line comment in bash shell 
Shell :: install older version of laravel 
Shell :: magento 2 configure cron command line 
Shell :: create a branch from main 
Shell :: copy secret from one namespace to another 
Shell :: dpkg install deb with dependencies 
Shell :: nmap udp scan 
Shell :: npm add optional dependency 
Shell :: windows scan for corrupt files 
Shell :: RHEL check the firewall status 
Shell :: how to uninstall a package with yarn 
Shell :: ls by size 
Shell :: wsl screen permission denied 
Shell :: docker starting too long 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =