Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- upstream admhmansy {
- server 192.168.212.96 max_fails=2 fail_timeout=600s; # WAF-vIP
- server 127.0.0.1:8888 backup; # bitrix
- }
- server {
- listen 80;
- server_name admhmansy.ru;
- return 301 https://$host$request_uri;
- }
- server {
- listen 443 ssl http2;
- server_name admhmansy.ru;
- ssl_protocols TLSv1.2 TLSv1.3;
- ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
- ssl_certificate /path/to/cert/cert.pem;
- ssl_certificate_key /path/to/key/key.key;
- add_header X-XSS-Protection "1; mode=block";
- add_header X-Content-Type-Options nosniff;
- access_log /var/log/nginx/admhmansy.ru/access.log;
- error_log /var/log/nginx/admhmansy.ru/error.log;
- location / {
- proxy_pass http://admhmansy; ##### здесь убедись, что apache принимает http, а не https
- proxy_set_header Host "admhmansy.ru";
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Forwarded-Proto $scheme;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement