Advertisement
Guest User

Untitled

a guest
May 3rd, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.67 KB | None | 0 0
  1. server {
  2. listen 80;
  3.  
  4. server_name foobar.com ;
  5. access_log /srv/www/foobar.com/logs/access.log;
  6. error_log /srv/www/foobar.com/logs/error.log;
  7.  
  8. root /srv/www/foobar.com/current/web;
  9. index index.php index.htm index.html;
  10.  
  11. satisfy any;
  12. allow 204.15.20.0/22;
  13. allow 69.63.176.0/20;
  14. allow 66.220.144.0/20;
  15. allow 66.220.144.0/21;
  16. allow 69.63.184.0/21;
  17. allow 69.63.176.0/21;
  18. allow 74.119.76.0/22;
  19. allow 69.171.255.0/24;
  20. allow 173.252.64.0/18;
  21. allow 69.171.224.0/19;
  22. allow 69.171.224.0/20;
  23. allow 103.4.96.0/22;
  24. allow 69.63.176.0/24;
  25. allow 173.252.64.0/19;
  26. allow 173.252.70.0/24;
  27. allow 31.13.64.0/18;
  28. allow 31.13.24.0/21;
  29. allow 66.220.152.0/21;
  30. allow 66.220.159.0/24;
  31. allow 69.171.239.0/24;
  32. allow 69.171.240.0/20;
  33. allow 31.13.64.0/19;
  34. allow 31.13.64.0/24;
  35. allow 31.13.65.0/24;
  36. allow 31.13.67.0/24;
  37. allow 31.13.68.0/24;
  38. allow 31.13.69.0/24;
  39. allow 31.13.70.0/24;
  40. allow 31.13.71.0/24;
  41. allow 31.13.72.0/24;
  42. allow 31.13.73.0/24;
  43. allow 31.13.74.0/24;
  44. allow 31.13.75.0/24;
  45. allow 31.13.76.0/24;
  46. allow 31.13.77.0/24;
  47. allow 31.13.96.0/19;
  48. allow 31.13.66.0/24;
  49. allow 173.252.96.0/19;
  50. allow 69.63.178.0/24;
  51. allow 31.13.78.0/24;
  52. allow 31.13.79.0/24;
  53. allow 31.13.80.0/24;
  54. allow 31.13.82.0/24;
  55. allow 31.13.83.0/24;
  56. allow 31.13.84.0/24;
  57. allow 31.13.85.0/24;
  58. allow 31.13.86.0/24;
  59. allow 31.13.87.0/24;
  60. allow 31.13.88.0/24;
  61. allow 31.13.89.0/24;
  62. allow 31.13.90.0/24;
  63. allow 31.13.91.0/24;
  64. allow 31.13.92.0/24;
  65. allow 31.13.93.0/24;
  66. allow 31.13.94.0/24;
  67. allow 31.13.95.0/24;
  68. allow 69.171.253.0/24;
  69. allow 69.63.186.0/24;
  70. allow 31.13.81.0/24;
  71. allow 179.60.192.0/22;
  72. allow 179.60.192.0/24;
  73. allow 179.60.193.0/24;
  74. allow 179.60.194.0/24;
  75. allow 179.60.195.0/24;
  76. allow 185.60.216.0/22;
  77. allow 45.64.40.0/22;
  78. allow 185.60.216.0/24;
  79. allow 185.60.217.0/24;
  80. allow 185.60.218.0/24;
  81. allow 185.60.219.0/24;
  82. allow 129.134.0.0/16;
  83. allow 157.240.0.0/16;
  84. allow 204.15.20.0/22;
  85. allow 69.63.176.0/20;
  86. allow 69.63.176.0/21;
  87. allow 69.63.184.0/21;
  88. allow 66.220.144.0/20;
  89. allow 69.63.176.0/20;
  90. deny all;
  91. auth_basic 'Restricted';
  92. auth_basic_user_file /etc/htpasswd/foobar.com;
  93.  
  94. charset utf-8;
  95.  
  96. add_header Fastcgi-Cache $upstream_cache_status;
  97.  
  98.  
  99. include includes.d/foobar.com/*.conf;
  100. include wordpress.conf;
  101.  
  102. location ~ \.php$ {
  103. try_files $uri =404;
  104. error_page 404 /index.php;
  105.  
  106. include fastcgi_params;
  107. fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
  108. fastcgi_param DOCUMENT_ROOT $realpath_root;
  109. fastcgi_pass unix:/var/run/php-fpm-wordpress.sock;
  110. }
  111. }
  112.  
  113.  
  114. server {
  115. listen 80;
  116. server_name foobar.com;
  117. return 301 $scheme://foobar.com$request_uri;
  118. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement