Monday, December 16, 2024

Cara Update SSL Pada Docker Owncloud

 Misal ID Docker Owncloud adalah 7213d7a41122, dengan name : owc10-2
 File certificate SSL dan file config https (https.conf) ditempatkan di /root/resources/

1. Copy file certificate SSL ke docker :
docker cp resources/filecertificate.pem 7213d7a41122:/etc/apache2/ssl/

2. Copy file config https ke docker :
docker cp resources/https.conf 7213d7a41122:/etc/apache2/sites-enabled/

3. Akses docker untuk mengecek file yang sudah dicopy tadi.
docker exec -it owc10-2 sh


ISI FILE CONFIG HTTPS (https.conf):

Listen 443
<VirtualHost *:443>
  ServerAdmin webmaster@localhost
  DocumentRoot /var/www/html
  ErrorLog ${APACHE_LOG_DIR}/error.log
  CustomLog ${APACHE_LOG_DIR}/access.log combined
  <Directory /var/www/html/ >
    AllowOverride All
    Options -Indexes +FollowSymlinks
  </Directory>
        SSLEngine on
SSLCertificateChainFile /etc/apache2/ssl/Chain_RootCA_Bundle.crt
SSLCertificateFile /etc/apache2/ssl/filecertificate.pem
        SSLCertificateKeyFile /etc/apache2/ssl/filekey.key
</VirtualHost>

No comments:

Post a Comment

Cara Update SSL Pada Docker Owncloud

 Misal ID Docker Owncloud adalah 7213d7a41122 , dengan name : owc10-2  File certificate SSL dan file config https ( https.conf ) ditempatkan...

Popular Posts