IT/nginx2023. 3. 29. 10:10[nginx] conf

PATH /etc/nginx/nginx.conf # listen http { server { listen 80; # ipv4 listen [::]:80; # ipv6 listen 443; listen [::]:443; } } # return 301 (80 -> 443) # https://nginx.org/en/docs/stream/ngx_stream_return_module.html http { server { listen 80; # ipv4 listen [::]:80; # ipv6 # http -> https redirection return 301 $server_name$request_uri; } } # ssl http { server { listen 443 ssl; listen [::]:443 ss..

IT/nginx2023. 3. 29. 10:01[nginx] error

# error Mar 17 01:35:50 gsitm-bastion setroubleshoot[82865]: SELinux is preventing /usr/sbin/nginx from read access on the file ... For complete SELinux messages run: sealert -l fe2a> Mar 17 01:35:50 gsitm-bastion setroubleshoot[82865]: SELinux is preventing /usr/sbin/nginx from read access on the file ... ***** Plugin catchall (100. confidence) suggests ************************** If you believe..

image