Guest User

Untitled

a guest
Oct 14th, 2019
188
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2. listen 80;
  3.  
  4. server_name www.sexygirlasian.com;
  5. rewrite ^(.*) http://sexygirlasian.com$1 permanent;
  6. }
  7. server {
  8.  
  9. root /usr/share/nginx/html/sexygirlasian/app/webroot;
  10. index index.php index.html index.htm;
  11. server_name sexygirlasian.com;
  12.  
  13. location / {
  14. try_files $uri $uri/ /index.php?$args;
  15. }
  16. # Custom configuration
  17.  
  18. location ~ \.php$ {
  19. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  20. include /etc/nginx/fastcgi_params;
  21. fastcgi_pass 127.0.0.1:9000;
  22. fastcgi_index index.php;
  23. fastcgi_connect_timeout 1000;
  24. fastcgi_send_timeout 1000;
  25. fastcgi_read_timeout 1000;
  26. fastcgi_buffer_size 256k;
  27. fastcgi_buffers 4 256k;
  28. fastcgi_busy_buffers_size 256k;
  29. fastcgi_temp_file_write_size 256k;
  30. fastcgi_intercept_errors on;
  31. fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html/sexygirlasian/app/webroot$fastcgi_script_name;
  32. }
  33. location /nginx_status {
  34. stub_status on;
  35. access_log off;
  36. }
  37. location /php_status {
  38. fastcgi_pass 127.0.0.1:9000;
  39. fastcgi_index index.php;
  40. fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html/sexygirlasian/app/webroot$fastcgi_script_name;
  41. include /etc/nginx/fastcgi_params;
  42. }
  43. location ~ /\. {
  44. deny all;
  45. }
  46. location = /favicon.ico {
  47. log_not_found off;
  48. access_log off;
  49. }
  50. location = /robots.txt {
  51. allow all;
  52. log_not_found off;
  53. access_log off;
  54. }
  55. location ~* \.(3gp|gif|jpg|jpeg|png|ico|wmv|avi|asf|asx|mpg|mpeg|mp4|pls|mp3|mid|wav|swf|flv|exe|zip|tar|rar|gz|tgz|bz2|uha|7z|doc|docx|xls|xlsx|pdf|iso|eot|svg|ttf|woff)$ {
  56. gzip_static off;
  57. add_header Pragma public;
  58. add_header Cache-Control "public, must-revalidate, proxy-revalidate";
  59. access_log off;
  60. expires 30d;
  61. break;
  62. }
  63.  
  64. location ~* \.(txt|js|css)$ {
  65. add_header Pragma public;
  66. add_header Cache-Control "public, must-revalidate, proxy-revalidate";
  67. access_log off;
  68. expires 30d;
  69. break;
  70. }
  71.  
  72. listen 443 ssl;
  73. # SSL
  74. ssl_certificate /etc/letsencrypt/live/sexygirlasian.com/fullchain.pem;
  75. ssl_certificate_key /etc/letsencrypt/live/sexygirlasian.com/privkey.pem;
  76. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  77. ssl_prefer_server_ciphers on;
  78. ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
  79.  
  80. # Improve HTTPS performance with session resumption
  81. ssl_session_cache shared:SSL:50m;
  82. ssl_session_timeout 1d;
  83.  
  84. # DH parameters
  85. ssl_dhparam /etc/nginx/ssl/dhparam.pem;
  86. # Enable HSTS
  87. add_header Strict-Transport-Security "max-age=31536000" always;
  88. }
  89.  
  90.  
  91. server {
  92. if ($host = sexygirlasian.com) {
  93. return 301 https://$host$request_uri;
  94. } # managed by Certbot
  95.  
  96.  
  97. listen 80;
  98. server_name sexygirlasian.com;
  99. return 404; # managed by Certbot
  100.  
  101.  
  102. }
RAW Paste Data