서버 점검 안내

dsclub은 서비스의 안정성과 성능 향상을 위해
매일 04시 30분에 정기 점검이 진행됩니다.

점검 시간: 오전 4시 30분 ~ 4시 35분

해당 시간 동안 일시적으로 서비스에 접속이 불가능하오니, 양해 부탁드립니다.

nginx에서 https 사용하기 (Using HTTPS with NGINX) > 코딩 스토리

nginx에서 https 사용하기 (Using HTTPS with NGINX)

페이지 정보

작성자 profile_image tak2 (192.♡.0.1) 작성일 23-07-02 21:34 조회 5,496 댓글 1

본문

sudo vi /etc/nginx/sites-available/default​

 

에 들어갑니다.

 

##

# You should look at the following URL's in order to grasp a solid understanding

# of Nginx configuration files in order to fully unleash the power of Nginx.

# https://www.nginx.com/resources/wiki/start/

# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/

# https://wiki.debian.org/Nginx/DirectoryStructure

#

# In most cases, administrators will remove this file from sites-enabled/ and

# leave it as reference inside of sites-available where it will continue to be

# updated by the nginx packaging team.

#

# This file will automatically load configuration files provided by other

# applications, such as Drupal or Wordpress. These applications will be made

# available underneath a path with that package name, such as /drupal8.

#

# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.

##

 

# Default server configuration

#

server {

listen 80 default_server;

listen [::]:80 default_server;

#

#listen 443 ssl default_server;

#listen [::]:443 ssl default_server;

#

# Note: You should disable gzip for SSL traffic.

# See: https://bugs.debian.org/773332

 

위에서

 

server {

listen 80 default_server;

listen [::]:80 default_server;

#

#listen 443 ssl default_server;

#listen [::]:443 ssl default_server; 

 

 

server {

listen 80 default_server;

listen [::]:80 default_server;

SSL configuration

#

listen 443 ssl default_server;

listen [::]:443 ssl default_server;

ssl 인증서 주소

ssl 인증서 주소

# 

 

위와 같이 바꾸어줍니다.

 

좋아요69 이 글을 좋아요하셨습니다
url 복사 카카오톡 공유 라인 공유 페이스북 공유 트위터 공유

2kat님의 댓글

no_profile 2kat 아이피 (000.♡.000.000) 작성일

오늘 하루도 마무리 잘하세요

전체 269건
게시물 검색

접속자집계

오늘
1,362
어제
1,445
최대
4,271
전체
292,272