blechinger

nginx.conf

May 22nd, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.39 KB | None | 0 0
  1. # Main site https redirect
  2. #server {
  3. # listen 80;
  4. # server_name www.blechinger.io blechinger.io;
  5. # return 301 https://blechinger.io$request_uri;
  6. #}
  7.  
  8. # Main site
  9. server {
  10. # port changed from 443 to 80 for HAProxy SSL termination
  11. listen 80;
  12. server_name https://blechinger.io;
  13. # HTTP Strict Transport Security response header
  14. # This is now handled by HAProxy
  15. # add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
  16. # SSL cert & key
  17. # This is now handled by HAProxy
  18. # ssl_certificate /var/www/blechinger.io/cert/blechinger.io/blechinger.io.crt;
  19. # ssl_certificate_key /var/www/blechinger.io/cert/blechinger.io/blechinger.io.key;
  20. # FOLLOWING LINE IS FOR THIS DOMAIN ONLY to enable domain mapping
  21. server_name_in_redirect off;
  22. # root and index
  23. root /var/www/blechinger.io/htdocs;
  24. index index.php index.html index.htm;
  25. # includes for WordPress magic sauce
  26. include common/wpfc.conf;
  27. include common/wpcommon.conf;
  28. include common/locations.conf;
  29. include /var/www/blechinger.io/conf/nginx/*.conf;
  30. }
  31.  
  32. # blog. site https redirect
  33. #server {
  34. # listen 80;
  35. # server_name blog.blechinger.io;
  36. # return 301 https://blog.blechinger.io$request_uri;
  37. #}
  38.  
  39. # blog. site
  40. server {
  41. # port changed from 443 to 80 for HAProxy SSL termination
  42. listen 80;
  43. server_name https://blog.blechinger.io;
  44. # HTTP Strict Transport Security response header
  45. # This is now handled by HAProxy
  46. # add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
  47. # SSL cert & key
  48. # ssl_certificate /var/www/blechinger.io/cert/blechinger.io/blechinger.io.crt;
  49. # ssl_certificate_key /var/www/blechinger.io/cert/blechinger.io/blechinger.io.key;
  50. # root and index
  51. root /var/www/blechinger.io/htdocs;
  52. index index.php index.html index.htm;
  53. # includes for WordPress magic sauce
  54. include common/wpfc.conf;
  55. include common/wpcommon.conf;
  56. include common/locations.conf;
  57. include /var/www/blechinger.io/conf/nginx/*.conf;
  58. }
  59.  
  60. # gamenight. site https redirect
  61. #server {
  62. # listen 80;
  63. # server_name gamenight.blechinger.io;
  64. # return 301 https://gamenight.blechinger.io$request_uri;
  65. #}
  66.  
  67. # gamenight. site
  68. server {
  69. # port changed from 443 to 80 for HAProxy SSL termination
  70. listen 80;
  71. server_name https://gamenight.blechinger.io;
  72. # HTTP Strict Transport Security response header
  73. # This is now handled by HAProxy
  74. # add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
  75. # SSL cert & key
  76. # This is now handled by HAProxy
  77. # ssl_certificate /var/www/blechinger.io/cert/blechinger.io/blechinger.io.crt;
  78. # ssl_certificate_key /var/www/blechinger.io/cert/blechinger.io/blechinger.io.key;
  79. # root and index
  80. root /var/www/blechinger.io/htdocs;
  81. index index.php index.html index.htm;
  82. # includes for WordPress magic sauce
  83. include common/wpfc.conf;
  84. include common/wpcommon.conf;
  85. include common/locations.conf;
  86. include /var/www/blechinger.io/conf/nginx/*.conf;
  87. }
  88.  
  89. # # # # # # # # # # # # # # # # # # # # # #
  90. # #
  91. # ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~ #
  92. # ~*~ rachelreagan.com blocks begin ~*~ #
  93. # ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~ #
  94. # #
  95. # # # # # # # # # # # # # # # # # # # # # #
  96.  
  97. # rachelreagan.com #https redirect
  98. #server {
  99. # listen 80;
  100. # server_name www.rachelreagan.com rachelreagan.com;
  101. # return 301 https://rachelreagan.com$request_uri;
  102. #}
  103.  
  104. # rachelreagan.com site
  105. server {
  106. # port changed from 443 to 80 for HAProxy SSL termination
  107. listen 80;
  108. server_name https://www.rachelreagan.com https://rachelreagan.com;
  109. # HTTP Strict Transport Security response header
  110. # This is now handled by HAProxy
  111. # add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
  112. # root and index directory
  113. root /var/www/blechinger.io/htdocs;
  114. index index.php index.html index.htm;
  115. # SSL cert & key
  116. # This is now handled by HAProxy
  117. # ssl_certificate /var/www/blechinger.io/cert/rachelreagan.com/rachelreagan.com.crt;
  118. # ssl_certificate_key /var/www/blechinger.io/cert/rachelreagan.com/rachelreagan.com.key;
  119. # includes for WordPress magic sauce
  120. include common/wpfc.conf;
  121. include common/wpcommon.conf;
  122. include common/locations.conf;
  123. include /var/www/blechinger.io/conf/nginx/*.conf;
  124. }
  125.  
  126.  
  127. # # # # # # # # # # # # # # # # # # # # # # #
  128. # #
  129. # ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~ #
  130. # ~*~exponentialnews.net blocks begin~*~ #
  131. # ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~ #
  132. # #
  133. # # # # # # # # # # # # # # # # # # # # # # #
  134.  
  135. # exponentialnews.net #https redirect
  136. #server {
  137. # listen 80;
  138. # server_name www.exponentialnews.net exponentialnews.net;
  139. # return 301 https://exponentialnews.net$request_uri;
  140. #}
  141.  
  142. # exponentialnews.net site
  143. server {
  144. # port changed from 443 to 80 for HAProxy SSL termination
  145. listen 80;
  146. server_name https://www.exponentialnews.net https://exponentialnews.net;
  147. # HTTP Strict Transport Security response header
  148. # This is now handled by HAProxy
  149. # add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
  150. # root and index directory
  151. root /var/www/blechinger.io/htdocs;
  152. index index.php index.html index.htm;
  153. # SSL cert & key
  154. # ssl_certificate /var/www/blechinger.io/cert/exponentialnews.net/exponentialnews.net.crt;
  155. # ssl_certificate_key /var/www/blechinger.io/cert/exponentialnews.net/exponentialnews.net.key;
  156. # includes for WordPress magic sauce
  157. include common/wpfc.conf;
  158. include common/wpcommon.conf;
  159. include common/locations.conf;
  160. include /var/www/blechinger.io/conf/nginx/*.conf;
  161. }
  162.  
  163. # # # # # # # # # # # # # # # # # # # # # # #
  164. # #
  165. # ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~ #
  166. # ~*~ kylejohnson.io blocks begin ~*~ #
  167. # ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~ #
  168. # #
  169. # # # # # # # # # # # # # # # # # # # # # # #
  170.  
  171. # kylejohnson.io #https redirect
  172. #server {
  173. # listen 80;
  174. # server_name www.kylejohnson.io kylejohnson.io;
  175. # return 301 https://kylejohnson.io$request_uri;
  176. #}
  177.  
  178. # kylejohnson.io site
  179. server {
  180. # port changed from 443 to 80 for HAProxy SSL termination
  181. listen 80;
  182. server_name https://www.kylejohnson.io https://kylejohnson.io;
  183. # HTTP Strict Transport Security response header
  184. # This is now handled by HAProxy
  185. # add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
  186. # root and index directory
  187. root /var/www/blechinger.io/htdocs;
  188. index index.php index.html index.htm;
  189. # SSL cert & key
  190. # This is now handled by HAProxy
  191. # ssl_certificate /var/www/blechinger.io/cert/kylejohnson.io/kylejohnson.io.crt;
  192. # ssl_certificate_key /var/www/blechinger.io/cert/kylejohnson.io/kylejohnson.io.key;
  193. # includes for WordPress magic sauce
  194. include common/wpfc.conf;
  195. include common/wpcommon.conf;
  196. include common/locations.conf;
  197. include /var/www/blechinger.io/conf/nginx/*.conf;
  198. }
Add Comment
Please, Sign In to add comment