728x90
1. ls-al로 소유주 확인

2. nginx.conf 수정
맨위에 추가
user root;
만약 소유주가 다르다면
user 다른소유주명;
전체코드
events {}
user root; # 여기!
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
\\
}
}'서버' 카테고리의 다른 글
| ubuntu - mariadb 설치 (0) | 2025.10.12 |
|---|---|
| SK broadband - 피파 네트워크 오류 뜨는 현상 (0) | 2025.10.10 |
| 시놀로지 자바설치 (0) | 2025.10.03 |
| nginx - SSL 도메인 별로 다르게 적용하기 (0) | 2025.09.29 |
| nginx - Port Forwarding 서버 구조에서 Let's encrypt SSL 안되는 현상 (0) | 2025.09.29 |