Nginx 설치 직후 default.conf
·
IT/Nginx
nginx 설치 직후 default.conf 내용 입니다 server { listen 80; server_name localhost; #access_log /var/log/nginx/host.access.log main; location / { root /usr/share/nginx/html; index index.html index.htm; } #error_page 404 /404.html; # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } # proxy the PHP scripts ..
Nginx 설치 직후 /var/run/nginx.pid 퍼미션 오류
·
IT/Nginx
nginx 설치 직후 기동 할 때 /var/run/nginx.pid 퍼미션 read/write denied 오류가 날 때 type=SERVICE_START msg=audit(1686632819.779:13287): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=nginx comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'UID="root" AUID="unset" [root@vmr97102715AA ~]# cat /var/log/audit/audit.log | grep nginx | grep den..
Nginx 50x 에러 처리를 위한 html
·
IT/Nginx
nginx 사용시 50x 에러에 대해 처리할 50x.html 내용 입니다 An error occurred. Sorry, the page you are looking for is currently unavailable. Please try again later. If you are the system administrator of this resource then you should check the error log for details. Faithfully yours, nginx.
Nginx 설치 후 기본 nginx.conf 설정 값
·
IT/Nginx
nginx(v1.24) 설치 후 /etc/nginx/nginx.conf 의 기본 설정 값입니다 user nginx; worker_processes auto; error_log /var/log/nginx/error.log notice; pid /var/run/nginx.pid; events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_a..
coredns
·
IT/API Gateway
coredns