scnict.com.conf 938 B

123456789101112131415161718192021222324252627282930313233343536
  1. server {
  2. listen 80;
  3. listen [::]:80;
  4. server_name www.scnict.com;
  5. rewrite ^(.*) https://$server_name$1 permanent;
  6. }
  7. server {
  8. listen 443 ssl http2 default_server;
  9. listen [::]:443 ssl http2 default_server;
  10. server_name www.scnict.com;
  11. root /var/www/html;
  12. ssl_certificate "cert/scnict.com.pem";
  13. ssl_certificate_key "cert/scnict.com.key";
  14. ssl_session_cache shared:SSL:1m;
  15. ssl_session_timeout 10m;
  16. ssl_ciphers HIGH:!aNULL:!MD5;
  17. ssl_prefer_server_ciphers on;
  18. location ~ \.*gz {
  19. add_header Content-Encoding 'gzip';
  20. }
  21. location /api/ {
  22. proxy_pass http://127.0.0.1:7200/;
  23. }
  24. error_page 404 /404.html;
  25. location = /40x.html {
  26. }
  27. error_page 500 502 503 504 /50x.html;
  28. location = /50x.html {
  29. }
  30. }