{"id":72,"date":"2015-11-12T00:27:20","date_gmt":"2015-11-11T22:27:20","guid":{"rendered":"http:\/\/mattyb.co.za\/?p=72"},"modified":"2015-11-12T00:27:20","modified_gmt":"2015-11-11T22:27:20","slug":"the-bigger-scope-of-things","status":"publish","type":"post","link":"https:\/\/mattyb.co.za\/index.php\/2015\/11\/12\/the-bigger-scope-of-things\/","title":{"rendered":"The bigger scope of things."},"content":{"rendered":"<p>Sometimes, we can use allll of the IPs, we don&#8217;t get the luxury of having an infinite amount available, and we need to make do with ONE IP.<\/p>\n<p>Well, NGINX doesnt stress about that, we just need to set it up. Nginx will take a look at the Host Headers, and use those to determine what server the user is looking for.<\/p>\n<p>So here is more-or-less how it works:<\/p>\n<p>===<br \/>\nserver {<br \/>\n    listen      www.domain1.com:80;<br \/>\n    access_log  \/var\/log\/nginx\/host.domain1.access.log  main;<br \/>\n    root \/var\/www\/domain1;<br \/>\n    server_name www.domain1.com;<br \/>\nxxx<br \/>\n    }<br \/>\n}<\/p>\n<p>server {<br \/>\n    listen       www.domain2.com:80;<br \/>\n    access_log  \/var\/log\/nginx\/host.domain2.access.log  main;<br \/>\n    root \/var\/www\/domain2;<br \/>\n    server_name www.domain2.com;<br \/>\nxxx<br \/>\n    }<br \/>\n===<\/p>\n<p>Now the important thing is the server_name.<\/p>\n<p>Here, you put the redirected DNS hosts, and bob is your uncle&#8230; It works with the StreamCache setup perfectly.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes, we can use allll of the IPs, we don&#8217;t get the luxury of having an infinite amount available, and we need to make do with ONE IP. Well, NGINX doesnt stress about that, we just need to set it up. Nginx will take a look at the Host Headers, and use those to determine &hellip; <a href=\"https:\/\/mattyb.co.za\/index.php\/2015\/11\/12\/the-bigger-scope-of-things\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">The bigger scope of things.<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[1],"tags":[],"class_list":["post-72","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p71fL2-1a","jetpack-related-posts":[{"id":16,"url":"https:\/\/mattyb.co.za\/index.php\/2015\/09\/30\/rage-2015-post-3\/","url_meta":{"origin":72,"position":0},"title":"rAge 2015 Post 3","author":"admin","date":"September 30, 2015","format":false,"excerpt":"Today we add nginx to out Monitorix, and install BandwidthD\u00a0for extra bandwidth monitoring. I would like to see who our biggest bandwidth movers are. I use\u00a0bandwidthd on a few PFSense boxes I run, and I love the way it works :) Nginx seems to have its own monitoring running on\u2026","rel":"","context":"In &quot;rAge 2015&quot;","block_context":{"text":"rAge 2015","link":"https:\/\/mattyb.co.za\/index.php\/category\/rage-2015\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":129,"url":"https:\/\/mattyb.co.za\/index.php\/2018\/01\/20\/cpanel-nginx-hack-mirror-sometimes-breaks\/","url_meta":{"origin":72,"position":1},"title":"CPanel NGINX hack-mirror, sometimes breaks","author":"admin","date":"January 20, 2018","format":false,"excerpt":"We had a few clients complaining about corrupted downloads from our mirror when trying to run upcp CPanel update, so I checked it out. It looks like the NGINX Proxy Cache had corruption, and it had a file \"http:\/\/cpproxy.afrixx.com\/cpanelsync\/11.68.0.26\/binaries\/linux-c7-x86_64\/bin\/setsiteip.xz\" that was invalid, and corrupted based on the expected checksum. I've\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":6,"url":"https:\/\/mattyb.co.za\/index.php\/2015\/09\/26\/rage-lan-2015\/","url_meta":{"origin":72,"position":2},"title":"rAge LAN 2015 Post 1","author":"admin","date":"September 26, 2015","format":false,"excerpt":"So I am a part of building the NAG LAN at the biggest Gaming Expo in South Africa. rAge My main purpose at the event will be to set-up the the LAN cache, as done here by Multiplay. I have 2 x the below to work with: 2 x Intel\u2026","rel":"","context":"In &quot;rAge 2015&quot;","block_context":{"text":"rAge 2015","link":"https:\/\/mattyb.co.za\/index.php\/category\/rage-2015\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":19,"url":"https:\/\/mattyb.co.za\/index.php\/2015\/10\/05\/rage-2015-post-4\/","url_meta":{"origin":72,"position":3},"title":"rAge 2015 Post 4","author":"admin","date":"October 5, 2015","format":false,"excerpt":"So, it is in motion! The event is slowly being built up, and its quite impressive to see. From the LAN side, we have put out the 12KM odd of LAN cable, and the associated power cables. Nothing is live quite yet, and we await the networking equipment, but this\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":78,"url":"https:\/\/mattyb.co.za\/index.php\/2015\/11\/29\/wait\/","url_meta":{"origin":72,"position":4},"title":"WAIT!","author":"admin","date":"November 29, 2015","format":false,"excerpt":"Who wants to wait around for other people\/things? Defiantly not your cache server, and if it is waiting around, then there could be a problem somewhere. See my case below: The server has only 4 CPUs, and its load average is almost double that. Wow, why is there so much\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"system1z.1day","src":"https:\/\/i0.wp.com\/mattyb.co.za\/wp-content\/uploads\/2015\/11\/system1z.1day.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/mattyb.co.za\/wp-content\/uploads\/2015\/11\/system1z.1day.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/mattyb.co.za\/wp-content\/uploads\/2015\/11\/system1z.1day.png?resize=700%2C400 2x"},"classes":[]},{"id":137,"url":"https:\/\/mattyb.co.za\/index.php\/2019\/05\/30\/fakeraid-linux-and-r1soft\/","url_meta":{"origin":72,"position":5},"title":"FakeRAID, Linux, and R1Soft","author":"admin","date":"May 30, 2019","format":false,"excerpt":"FakeRAID and Linux aren't really friends. What is fakeRAID? In the last few years, a number of hardware products have come onto the market claiming to be IDE or SATA RAID controllers. These have shown up in a number of desktop\/workstation motherboards and lower-end servers. Virtually none of these are\u2026","rel":"","context":"In \"backups\"","block_context":{"text":"backups","link":"https:\/\/mattyb.co.za\/index.php\/tag\/backups\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/mattyb.co.za\/wp-content\/uploads\/2019\/05\/Screenshot-2019-05-30-at-16.34.22.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/mattyb.co.za\/wp-content\/uploads\/2019\/05\/Screenshot-2019-05-30-at-16.34.22.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/mattyb.co.za\/wp-content\/uploads\/2019\/05\/Screenshot-2019-05-30-at-16.34.22.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/mattyb.co.za\/wp-content\/uploads\/2019\/05\/Screenshot-2019-05-30-at-16.34.22.png?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/mattyb.co.za\/wp-content\/uploads\/2019\/05\/Screenshot-2019-05-30-at-16.34.22.png?resize=1400%2C800&ssl=1 4x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/mattyb.co.za\/index.php\/wp-json\/wp\/v2\/posts\/72","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mattyb.co.za\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mattyb.co.za\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mattyb.co.za\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mattyb.co.za\/index.php\/wp-json\/wp\/v2\/comments?post=72"}],"version-history":[{"count":1,"href":"https:\/\/mattyb.co.za\/index.php\/wp-json\/wp\/v2\/posts\/72\/revisions"}],"predecessor-version":[{"id":73,"href":"https:\/\/mattyb.co.za\/index.php\/wp-json\/wp\/v2\/posts\/72\/revisions\/73"}],"wp:attachment":[{"href":"https:\/\/mattyb.co.za\/index.php\/wp-json\/wp\/v2\/media?parent=72"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mattyb.co.za\/index.php\/wp-json\/wp\/v2\/categories?post=72"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mattyb.co.za\/index.php\/wp-json\/wp\/v2\/tags?post=72"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}