Created Setting up SSL on wordpress container (markdown)
parent
e2edc0de6c
commit
3a10866b2f
23
Setting-up-SSL-on-wordpress-container.md
Normal file
23
Setting-up-SSL-on-wordpress-container.md
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
|
||||||
|
### Execute a shell on the container
|
||||||
|
|
||||||
|
```
|
||||||
|
docker exec -ti wordpress /bin/bash
|
||||||
|
```
|
||||||
|
|
||||||
|
### Add backports repo
|
||||||
|
|
||||||
|
```
|
||||||
|
cat >> /etc/apt/sources.list << EOF
|
||||||
|
deb http://ftp.debian.org/debian jessie-backports main
|
||||||
|
EOF
|
||||||
|
```
|
||||||
|
|
||||||
|
### Install certbot
|
||||||
|
|
||||||
|
```
|
||||||
|
apt update
|
||||||
|
apt-get install python-certbot-apache -t jessie-backports
|
||||||
|
```
|
||||||
|
|
||||||
|
certbot run -d ellak.org -d www.ellak.org
|
Loading…
Reference in a new issue