Guest User

Untitled

a guest
Aug 20th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 KB | None | 0 0
  1. ERR_TOO_MANY_REDIRECTS
  2.  
  3. server {
  4. listen 80 default_server;
  5. server_name piotrzak.design;
  6. rewrite ^/(.*) https://piotrzak.design/$1 permanent;
  7. listen [::]:80 default_server;
  8.  
  9.  
  10.  
  11. server_name piotrzak.design;
  12. ssl_certificate /home/pz/piotrzak.design.chained.crt;
  13. ssl_certificate_key /home/pz/piotrzak.design.key;
  14.  
  15. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  16. ssl_prefer_server_ciphers on;
  17. ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
  18.  
  19. # SSL configuration
  20. #
  21. listen 443 ssl;
  22. listen [::]:443 ssl;
  23.  
  24. #
  25. # Note: You should disable gzip for SSL traffic.
  26. # See: https://bugs.debian.org/773332
  27. #
  28. # Read up on ssl_ciphers to ensure a secure configuration.
  29. # See: https://bugs.debian.org/765782
  30. #
  31. # Self signed certs generated by the ssl-cert package
  32. # Don't use them in a production server!
  33. #
  34. # include snippets/snakeoil.conf;
  35.  
  36. root /home/pz/Potfolio-v.1.0.1;
  37.  
  38. # Add index.php to the list if you are using PHP
  39. index index.html index.htm index.nginx-debian.html;
  40.  
  41. server_name piotrzak.design;
  42.  
  43. location / {
  44. # First attempt to serve request as file, then
  45. # as directory, then fall back to displaying a 404.
  46. autoindex on;
  47. try_files $uri $uri/ =404;
  48. root /home/pz/Portfolio-v.1.0.1;
  49.  
  50. proxy_pass https://167.99.140.31:85;
  51. proxy_set_header Host $host;
  52. proxy_set_header X-Forwarded-Proto https;
  53. proxy_set_header X-Real-IP $remote_addr;
  54. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  55. proxy_set_header X-Forwarded-Proto $scheme;
  56. }
Add Comment
Please, Sign In to add comment