Download
#Pre-installation test
rpm -ivh --test "nginx-1.18.0-2.el6.ngx.x86_64.rpm"
#Installation
rpm -ivh "nginx-1.18.0-2.el6.ngx.x86_64.rpm"
#View list of installed files
rpm -qal nginx
server {
listen 443 ssl;
server_name server.local;
# hide nginx version.
server_tokens off;
# ssl_verify_client on;
ssl_verify_client off;
ssl_certificate /etc/nginx/wildcard_local/wildcard_local.crt;
ssl_certificate_key /etc/nginx/wildcard_local/private/wildcard_local.key;
ssl_client_certificate /etc/nginx/wildcard_local/ca.crt;
ssl_ciphers 'HIGH:!aNULL:!MD5';
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
proxy_set_header Host server.local;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
location / {
proxy_pass http://server.local;
}
}
#Start-up
service nginx start
When you access https://server.local Confirm that the contents of http://server.local are displayed.
Recommended Posts