{"id":1124,"date":"2012-07-18T00:34:40","date_gmt":"2012-07-18T00:34:40","guid":{"rendered":"http:\/\/www.phpmind.com\/blog\/?p=1124"},"modified":"2012-07-18T00:34:40","modified_gmt":"2012-07-18T00:34:40","slug":"how-to-access-one-server-if-they-are-connect-with-loadblancer","status":"publish","type":"post","link":"https:\/\/www.phpmind.com\/blog\/2012\/07\/how-to-access-one-server-if-they-are-connect-with-loadblancer\/","title":{"rendered":"How to access one server if they are connect with LoadBlancer?"},"content":{"rendered":"<p>If you are LAMP developer and your server is connected with LoadBlancer now LoadBlancer is big advantage in production to distribute traffic but sometimes it could be trouble for developer as you want to access one server out of two. <\/p>\n<p>Now here is the analogy.<br \/>\nYou have 2 servers and web1 and web2. Web1 is main and you are accessing through FTP and adding files then web2 is synced with web1 but while you are developing few files or code you want to access only web1 how to do that ?<\/p>\n<p>Well this is simple, change host file and one config file!<br \/>\nI am using MAC so add these 2 lines in host file and you will be accessing only web1. <\/p>\n<p>edit \/etc\/hosts<br \/>\nadd the lines<br \/>\n00.56.983.249  www.phpmind.com<br \/>\n00.56.983.249  phpmind.com<br \/>\nat the bottom of the file<br \/>\nedit \/etc\/resolv.conf<br \/>\nadd the line<br \/>\norder hosts, bind<br \/>\nto the top of the file<\/p>\n<p>And you are done!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are LAMP developer and your server is connected with LoadBlancer now LoadBlancer is big advantage in production to distribute traffic but sometimes it could be trouble for developer as you want to access one server out of two. Now here is the analogy. You have 2 servers and web1 and web2. Web1 is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[42],"tags":[],"class_list":["post-1124","post","type-post","status-publish","format-standard","hentry","category-mac"],"_links":{"self":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts\/1124","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/comments?post=1124"}],"version-history":[{"count":1,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts\/1124\/revisions"}],"predecessor-version":[{"id":1125,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts\/1124\/revisions\/1125"}],"wp:attachment":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/media?parent=1124"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/categories?post=1124"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/tags?post=1124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}