カテゴリー
未分類

/etc/nginx/nginx.conf

nginx.conf 編集

——————————————————

user nginx;
worker_processes 1;

error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;

events {
worker_connections 1024;
}

http {
server_tokens off;
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_agent” “$http_x_forwarded_for”‘;

access_log /var/log/nginx/ssl_access.log main;

sendfile on;
#tcp_nopush on;

keepalive_timeout 65;

#gzip on;

client_max_body_size 128M;

ssl_protocols TLSv1 TLSv1.1 TLSv1.2;

include /etc/nginx/conf.d/*.conf;
#include /etc/nginx/sites-enabled/*;

 

server {
listen 443;
ssl on;
server_name ssl.xxxxx.xxxxx.com;
ssl_certificate /etc/letsencrypt/live/ssl.xxxxxx.xxxxx.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/ssl.xxxxx.xxxxx.com/privkey.pem; # managed by Certbot

location ^~ /.well-known/acme-challenge/ {
root /usr/share/nginx/html/.well-known;
}

location / {

        }

    }

}

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です