META INTERWORK
คู่มือการติดตั้งอ่าน 5 นาทีอัปเดต 2026-10-22

วิธีติดตั้ง SSL Certificate บน Apache HTTP Server

การตั้งค่า VirtualHost พอร์ต 443, SSLCertificateFile, SSLCertificateKeyFile และ SSLCertificateChainFile บน Apache

ตัวอย่างการตั้งค่า VirtualHost บน Apache 2.4+

เปิดใช้งาน mod_ssl และระบุพาธของไฟล์ใบรับรอง (.crt), Private Key (.key) และ Intermediate CA Bundle ให้ครบถ้วน

/etc/apache2/sites-available/ssl-site.conf
<VirtualHost *:443>
    ServerName example.co.th
    ServerAlias www.example.co.th
    DocumentRoot /var/www/html

    SSLEngine on
    SSLCertificateFile /etc/ssl/certs/example_co_th.crt
    SSLCertificateKeyFile /etc/ssl/private/example_co_th.key
    SSLCertificateChainFile /etc/ssl/certs/ca_bundle.crt
</VirtualHost>

ตรวจสอบและรีโหลด Service

รันคำสั่ง apachectl configtest เพื่อตรวจสอบ Syntax ก่อนสั่ง systemctl reload apache2

ต้องการความช่วยเหลือด้านการเลือกซื้อหรือติดตั้ง SSL?

ทีมวิศวกรของ Meta Interwork พร้อมให้คำปรึกษาและจัดทำใบเสนอราคาที่เหมาะกับโครงสร้างระบบของท่าน

บทความที่เกี่ยวข้อง

ติดต่อฝ่ายขาย