2026, 새로운 도약을 시작합니다.

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

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 개발일지

번호 제목 글쓴이 날짜 조회
공지 1년 전 조회 1,772
26 1년 전 조회 3,311
25 1년 전 조회 2,080
24 1년 전 조회 1,827
23 1년 전 조회 1,605
22 1년 전 조회 1,669
21 1년 전 조회 1,980
20 1년 전 조회 1,657
19 1년 전 조회 1,992
18 1년 전 조회 1,573
17 1년 전 조회 1,513
16 1년 전 조회 1,676
15 1년 전 조회 1,018
14 1년 전 조회 1,089
13 1년 전 조회 651
12 1년 전 조회 437
11 1년 전 조회 883
10 1년 전 조회 579
9 1년 전 조회 434
8 1년 전 조회 691
7 1년 전 조회 801
6 1년 전 조회 452
5 1년 전 조회 657
4 1년 전 조회 470
3 1년 전 조회 546
2 1년 전 조회 1,131
1 1년 전 조회 1,140
🐛 버그신고