Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 443 ssl http2;
- server_name www.vietbonus.com;
- # SSL
- ssl_certificate /etc/letsencrypt/live/vietbonus.com/fullchain.pem;
- ssl_certificate_key /etc/letsencrypt/live/vietbonus.com/privkey.pem;
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
- ssl_prefer_server_ciphers on;
- ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
- rewrite ^(.*) https://vietbonus.com$1 permanent;
- }
- server {
- listen 80;
- server_name vietbonus.com www.vietbonus.com;
- rewrite ^(.*) https://vietbonus.com$1 permanent;
- }
- server {
- listen 2313 ssl http2;
- access_log off;
- log_not_found off;
- error_log off;
- root /home/vietbonus.com/private_html;
- index index.php index.html index.htm;
- server_name vietbonus.com;
- error_page 497 https://$host:2313$request_uri;
- # SSL
- ssl_certificate /etc/letsencrypt/live/vietbonus.com/fullchain.pem;
- ssl_certificate_key /etc/letsencrypt/live/vietbonus.com/privkey.pem;
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
- ssl_prefer_server_ciphers on;
- ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
- auth_basic "Restricted";
- auth_basic_user_file /home/vietbonus.com/private_html/vietbonus/.htpasswd;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement