Guest User

Untitled

a guest
Nov 7th, 2020
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2. listen 443 ssl;
  3. server_name duhocuytin.com www.duhocuytin.com;
  4.  
  5. # SSL
  6. ssl_certificate /etc/letsencrypt/live/duhocuytin.com/fullchain.pem;
  7. ssl_certificate_key /etc/letsencrypt/live/duhocuytin.com/privkey.pem;
  8.  
  9. rewrite ^(.*) https://duhoctoancau247.com$1 permanent;
  10. }
  11. server {
  12. listen 80;
  13. server_name duhocuytin.com www.duhocuytin.com;
  14. rewrite ^(.*) https://duhoctoancau247.com$1 permanent;
  15. }
  16.  
  17. server {
  18. listen 2020;
  19.  
  20. access_log off;
  21. log_not_found off;
  22. error_log /home/duhocuytin.com/logs/nginx_error.log;
  23.  
  24. root /home/duhocuytin.com/private_html;
  25. index index.php index.html index.htm;
  26. server_name duhocuytin.com;
  27.  
  28. auth_basic "Restricted";
  29. auth_basic_user_file /home/duhocuytin.com/private_html/hocvps/.htpasswd;
  30.  
  31. location / {
  32. autoindex on;
  33. try_files $uri $uri/ /index.php;
  34. }
  35.  
  36. location ~ \.php$ {
  37. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  38. include /etc/nginx/fastcgi_params;
  39. fastcgi_pass 127.0.0.1:9000;
  40. fastcgi_index index.php;
  41. fastcgi_connect_timeout 1000;
  42. fastcgi_send_timeout 1000;
  43. fastcgi_read_timeout 1000;
  44. fastcgi_buffer_size 256k;
  45. fastcgi_buffers 4 256k;
  46. fastcgi_busy_buffers_size 256k;
  47. fastcgi_temp_file_write_size 256k;
  48. fastcgi_intercept_errors on;
  49. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  50. }
  51.  
  52. location ~ /\. {
  53. deny all;
  54. }
  55. }
Add Comment
Please, Sign In to add comment