Advertisement
Guest User

Untitled

a guest
Dec 16th, 2019
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.19 KB | None | 0 0
  1. server {
  2. server_name tiktok-free.com *.tiktok-free.com www.tiktok-free.com;
  3. charset off;
  4. index index.php index.html;
  5. disable_symlinks if_not_owner from=$root_path;
  6. include /etc/nginx/vhosts-includes/*.conf;
  7. include /etc/nginx/vhosts-resources/tiktok-free.com/*.conf;
  8. access_log /var/www/httpd-logs/tiktok-free.com.access.log;
  9. error_log /var/www/httpd-logs/tiktok-free.com.error.log notice;
  10. ssi on;
  11. set $root_path /var/www/tiktokfree/data/www;
  12. location / {
  13. try_files $uri $uri/ /index.php?$args;
  14. location ~ [^/]\.ph(p\d*|tml)$ {
  15. try_files /does_not_exists @php;
  16. }
  17. location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf)$ {
  18. expires 1h;
  19. }
  20. }
  21. return 301 https://$host:443$request_uri;
  22. location @php {
  23. fastcgi_index index.php;
  24. fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f s@tiktok-free.com";
  25. fastcgi_pass unix:/var/www/php-fpm/tiktokfree.sock;
  26. fastcgi_split_path_info ^((?U).+\.ph(?:p\d*|tml))(/?.+)$;
  27. try_files $uri =404;
  28. include fastcgi_params;
  29. }
  30. gzip on;
  31. gzip_comp_level 5;
  32. gzip_disable "msie6";
  33. gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript;
  34. set $subdomain tiktok-free.com;
  35. if ($host ~* ^((.*).tiktok-free.com)$) {
  36. set $subdomain $1;
  37. }
  38. root $root_path/$subdomain;
  39. listen 109.196.164.49:80;
  40. }
  41. server {
  42. server_name tiktok-free.com *.tiktok-free.com www.tiktok-free.com;
  43. ssl_certificate "/var/www/httpd-cert/tiktokfree/tiktok-free.com_le1.crtca";
  44. ssl_certificate_key "/var/www/httpd-cert/tiktokfree/tiktok-free.com_le1.key";
  45. ssl_ciphers EECDH:+AES256:-3DES:RSA+AES:!NULL:!RC4;
  46. ssl_prefer_server_ciphers on;
  47. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  48. add_header Strict-Transport-Security "max-age=31536000;";
  49. ssl_dhparam /etc/ssl/certs/dhparam4096.pem;
  50. charset off;
  51. index index.php index.html;
  52. disable_symlinks if_not_owner from=$root_path;
  53. include /etc/nginx/vhosts-includes/*.conf;
  54. include /etc/nginx/vhosts-resources/tiktok-free.com/*.conf;
  55. access_log /var/www/httpd-logs/tiktok-free.com.access.log;
  56. error_log /var/www/httpd-logs/tiktok-free.com.error.log notice;
  57. ssi on;
  58. set $root_path /var/www/tiktokfree/data/www;
  59. location / {
  60. try_files $uri $uri/ /index.php?$args;
  61. location ~ [^/]\.ph(p\d*|tml)$ {
  62. try_files /does_not_exists @php;
  63. }
  64. location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf)$ {
  65. expires 1h;
  66. }
  67. }
  68. location @php {
  69. fastcgi_index index.php;
  70. fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f s@tiktok-free.com";
  71. fastcgi_pass unix:/var/www/php-fpm/tiktokfree.sock;
  72. fastcgi_split_path_info ^((?U).+\.ph(?:p\d*|tml))(/?.+)$;
  73. try_files $uri =404;
  74. include fastcgi_params;
  75. }
  76. gzip on;
  77. gzip_comp_level 5;
  78. gzip_disable "msie6";
  79. gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript;
  80. set $subdomain tiktok-free.com;
  81. if ($host ~* ^((.*).tiktok-free.com)$) {
  82. set $subdomain $1;
  83. }
  84. root $root_path/$subdomain;
  85. listen 109.196.164.49:443 ssl;
  86. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement