리자

그누보드5와 React 같이 사용하기 2/2 + 도메인 연결, 무료 SSL 연동

· 2024-08-27 (화) 12:33:33 · 1304 · 1

https://www.youtube.com/watch?v=k8hqAXjdCCo

 

이전 영상에 이어 apache2 서버에 도메인을 연결하고 
certbot를 사용하여 무료 SSL 연동하는 방법에 대해 알아 봅니다.

 

apache2 설정

ServerName 도메인
ServerAlias www.도메인

 

apt install certbot
apt install python3-certbot-apache


certbot --apache
또는 
certbot --apache -d 도메인 -d www.도메인

|

댓글 1개

# nginx 설정

 

apt install nginx php-fpm

 

 

        root /var/www/html/gnuboard5;

 

        # Add index.php to the list if you are using PHP
        index index.html index.htm index.nginx-debian.html index.php;

 

        server_name 도메인 www.도메인;

 

        location / {
                # First attempt to serve request as file, then
                # as directory, then fall back to displaying a 404.
                try_files $uri $uri/ =404;
        }

 

        # pass PHP scripts to FastCGI server
        #
        location ~ \.php$ {
                include snippets/fastcgi-php.conf;
        #
        #       # With php-fpm (or other unix sockets):
                fastcgi_pass unix:/run/php/php8.3-fpm.sock;
        #       # With php-cgi (or other tcp sockets):
        #       fastcgi_pass 127.0.0.1:9000;
        }

 

        # React 앱을 위한 위치 설정
        location /react-app {
                alias /var/www/html/gnuboard5/react-app/build;
        }

 

댓글을 작성하시려면 로그인이 필요합니다.

그누보드5 개발일지

27건
+
제목 글쓴이 날짜 조회
24-08-12 조회 1,944
24-10-11 조회 3,634
24-10-07 조회 2,255
24-09-27 조회 2,040
24-09-27 조회 1,817
24-09-25 조회 1,860
24-09-13 조회 2,236
24-09-12 조회 1,840
24-09-06 조회 2,302
24-09-05 조회 1,745
24-09-03 조회 1,668
24-08-28 조회 1,938
24-08-27 조회 1,305
24-08-26 조회 1,353
24-08-23 조회 910
24-08-23 조회 634
24-08-22 조회 1,211
24-08-22 조회 782
24-08-20 조회 617
24-08-19 조회 903
24-08-16 조회 993
24-08-14 조회 610
24-08-13 조회 880
24-08-13 조회 616
24-08-12 조회 748
24-08-12 조회 1,360
24-08-12 조회 1,492