Guest User

Untitled

a guest
Jan 16th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. # FORGE CONFIG (DOT NOT REMOVE!)
  2. include forge-conf/domain.com/before/*;
  3.  
  4. server {
  5. listen 443 ssl http2;
  6. listen [::]:443 ssl http2;
  7. server_name jackco.biz;
  8. root /home/forge/domain.com/public;
  9.  
  10. # FORGE SSL (DO NOT REMOVE!)
  11. ssl_certificate /etc/nginx/ssl/domain.com/292197/server.crt;
  12. ssl_certificate_key /etc/nginx/ssl/domain.com/292197/server.key;
  13.  
  14. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  15. ssl_ciphers '';
  16. ssl_prefer_server_ciphers on;
  17. ssl_dhparam /etc/nginx/dhparams.pem;
  18.  
  19. #add_header X-Frame-Options "SAMEORIGIN";
  20. add_header X-XSS-Protection "1; mode=block";
  21. add_header X-Content-Type-Options "nosniff";
  22.  
  23. index index.html index.htm index.php;
  24.  
  25. charset utf-8;
  26.  
  27. # FORGE CONFIG (DOT NOT REMOVE!)
  28. include forge-conf/domain.com/server/*;
  29.  
  30. location / {
  31. try_files $uri $uri/ /index.php?$query_string;
  32. }
  33.  
  34. location = /favicon.ico { access_log off; log_not_found off; }
  35. location = /robots.txt { access_log off; log_not_found off; }
  36.  
  37. access_log off;
  38. error_log /var/log/nginx/domain.com-error.log error;
  39.  
  40. error_page 404 /index.php;
  41.  
  42. location ~ .php$ {
  43. fastcgi_split_path_info ^(.+.php)(/.+)$;
  44. fastcgi_pass unix:/var/run/php/php5.6-fpm.sock;
  45. fastcgi_index index.php;
  46. include fastcgi_params;
  47. fastcgi_read_timeout 600;
  48. }
  49.  
  50. location ~ /.(?!well-known).* {
  51. deny all;
  52. }
  53. }
  54.  
  55. # FORGE CONFIG (DOT NOT REMOVE!)
  56. include forge-conf/domain.com/after/*;
Add Comment
Please, Sign In to add comment