Skip to content

Instantly share code, notes, and snippets.

@pandanote-info
Created January 4, 2020 07:08
Show Gist options
  • Save pandanote-info/956d4b14c909145c67ba525f5bb584bf to your computer and use it in GitHub Desktop.
Save pandanote-info/956d4b14c909145c67ba525f5bb584bf to your computer and use it in GitHub Desktop.
nginxのHTTPSプロトコルを扱うポートへの接続用の設定の前半部。
server {
listen 443 ssl http2 default_server;
listen [::]:443 ssl http2 default_server;
server_name (適切なドメイン名);
root (Apache httpdのDocumentRootの設定);
ssl_certificate (Apache httpdのSSLCertificateFileの設定);
ssl_certificate_key (Apache httpdのSSLCertificateKeyFileの設定);
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
ssl_protocols TLSv1.3 TLSv1.2;
ssl_prefer_server_ciphers on;
client_max_body_size 50M;
index index.php index.html index.htm;
(以下location及びerror関連の設定が続きます…)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment