웹서버 설정 (NGINX)
g6.gnuboardd.com 도메인을 자신의 도메인 이름으로 변경하여 사용하세요.
(DNS 관리에서 A 레코드가 이 서버의 아이피로 설정이 되어 있어야 합니다.)
[code]
root@sirsoft-235928:/home/ubuntu/g6# apt install nginx
...
Do you want to continue? [Y/n] y
...
No VM guests are running outdated hypervisor (qemu) binaries on this host.
root@sirsoft-235928:/home/ubuntu/g6# cd /etc/nginx/sites-enabled/
root@sirsoft-235928:/etc/nginx/sites-enabled# cp default g6.gnuboard.com.conf
root@sirsoft-235928:/etc/nginx/sites-enabled# vi g6.gnuboard.com.conf
root@sirsoft-235928:/etc/nginx/sites-enabled# systemctl restart nginx
root@sirsoft-235928:/etc/nginx/sites-enabled# systemctl status nginx
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2024-01-18 12:43:18 KST; 7s ago
[/code]
/etc/nginx/sites-enabled/g6.gnuboard.com.conf
[code]
server {
listen 80;
server_name g6.gnuboard.com;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
location / {
proxy_pass http://127.0.0.1:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
[/code]
다음글에 이어집니다.
게시글 목록
| 번호 | 제목 |
|---|---|
| 49 | |
| 36 | |
| 33 | |
| 31 | |
| 22 | |
| 21 | |
| 17 | |
| 16 | |
| 15 | |
| 14 | |
| 11 | |
| 10 | |
| 9 | |
| 8 | |
| 7 | |
| 3 | |
| 2 | |
| 1 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기