[Nginx] Hướng Dẫn Cài đặt SSL Cho Nginx

Linux 16-03-2021 1,569 0 [Nginx] Hướng dẫn cài đặt SSL cho Nginx Chia sẻ

Hướng dẫn thao tác cài đặt SSL cho domain trên Nginx

1. Các bạn cân tạo file bundle

cat your_domain_name.crt your_domain_name_ca.crt >> your_domain_name.pem

2. Cấu hình vhost cho Nginx

server { listen 443; ssl on; ssl_certificate /etc/ssl/your_domain_name.pem; ssl_certificate_key /etc/ssl/your_domain_name.key; server_name your.domain.com; access_log /var/log/nginx/nginx.vhost.access.log; error_log /var/log/nginx/nginx.vhost.error.log; location / { root /home/www/public_html/your.domain.com/public/; index index.html; } }

3. Restart nginx

service nginx restart

Chúc các bạn thành công.

Bình luận Gửi
  • Các tin khác
Linux 15-12-2025400

Hướng Dẫn Chặn Port IN / OUT Bằng UFW Trên Ubuntu Server

Linux 08-12-20251130

Hướng dẫn tạo user root cho quyền remote từ xa trong mysql 5.7

Linux 25-11-20251350

Hướng dẫn update versio curl trên centos 7

Linux 25-11-20251850

Hướng dẫn reset password admin n8n chạy trên docker container

Linux 21-11-20251380

Cách làm đúng để FFmpeg KHÔNG BAO GIỜ BỊ MẤT

Linux 12-07-20241,9960

Hướng dẫn cài đặt PHP-FFMpeg

Linux 04-03-20241,8680

Hướng dẫn cài đặt ZABBIX 6.2 trên Ubuntu 22

Linux 03-01-20241,5810

Memcached installation problem on PHP5.6

Linux 16-12-20231,8840

[CentOS] Khắc phục lỗi failed to start lsb bring up/down networking

Linux 11-12-20231,5540

hàm date trong linux để có thể lấy được ngày tháng năm

Linux 05-12-20231,9160

Lệnh Linux Disk I/O Monitoring

Linux 25-11-20231,4250

[Nginx] Hướng dẫn cấu hình alias đường dẫn

Linux 22-11-20231,3900

[Firewalld] Hướng dẫn redirect port trên linux sử dụng firewalld

Linux 26-09-20231,4390

[NodeJS] hướng dẫn backup và restore config

Linux 07-09-20231,6480

[MySQL] Khắc phục lỗi Got timeout reading communication packets

ISET EDU

Từ khóa » Cài đặt Ssl Cho Nginx