{"id":493,"date":"2016-10-17T20:57:35","date_gmt":"2016-10-17T20:57:35","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/2016\/10\/17\/configuring-web-proxy-on-centos\/"},"modified":"2021-02-27T09:49:38","modified_gmt":"2021-02-27T09:49:38","slug":"configuring-web-proxy-on-centos","status":"publish","type":"post","link":"https:\/\/www.scmgalaxy.com\/tutorials\/configuring-web-proxy-on-centos\/","title":{"rendered":"How to Configure Web Proxy on CentOS | Tutorials | scmGalaxy"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2953 aligncenter\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2016\/10\/configuring-web-proxy-on-ce.png\" alt=\"web-proxy-on-centos\" width=\"600\" height=\"400\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2016\/10\/configuring-web-proxy-on-ce.png 600w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2016\/10\/configuring-web-proxy-on-ce-300x200.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>If your internet connection is behind a web proxy, you need to configure the following on your CentOS server:<\/p>\n<p>System-wide proxy settings &#8211; add the following lines to your \/etc\/environment file:<\/p>\n<p><code># vi \/etc\/environment<\/code><\/p>\n<p>http_proxy=&#8221;http:\/\/proxysrv:8080\/&#8221;<br \/>\nhttps_proxy=&#8221;https:\/\/proxysrv:8080\/&#8221;<br \/>\nftp_proxy=&#8221;ftp:\/\/proxysrv:8080\/&#8221;<br \/>\nno_proxy=&#8221;.mylan.local,.domain1.com,host1,host2&#8243;<\/p>\n<p>To apply these settings without restarting the machine run the following commands on the bash shell:<\/p>\n<p><code>export http_proxy=\"http:\/\/proxysrv:8080\/\"<br \/>\nexport https_proxy=\"https:\/\/proxysrv:8080\/\"<br \/>\nexport ftp_proxy=\"ftp:\/\/proxysrv:8080\/\"<br \/>\nexport no_proxy=\".mylan.local,.domain1.com,host1,host2\"<\/code><\/p>\n<p>You also need to configure yum:<\/p>\n<p># vi \/etc\/yum.conf<\/p>\n<p>proxy=http:\/\/proxysrv:8080\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If your internet connection is behind a web proxy, you need to configure the following on your CentOS server: System-wide [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":2953,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[68,528],"tags":[535,817,254,815,545,816,814],"class_list":["post-493","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-operating-systems","category-unix-linux-operating-systems","tag-centos","tag-centos-proxy-configuration","tag-configure","tag-configure-web-proxy-on-centos","tag-how","tag-proxy-on-centos","tag-web-proxy"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Configure Web Proxy on CentOS | Tutorials | scmGalaxy - scmGalaxy<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.scmgalaxy.com\/tutorials\/configuring-web-proxy-on-centos\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Configure Web Proxy on CentOS | Tutorials | scmGalaxy - scmGalaxy\" \/>\n<meta property=\"og:description\" content=\"If your internet connection is behind a web proxy, you need to configure the following on your CentOS server: System-wide [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/configuring-web-proxy-on-centos\/\" \/>\n<meta property=\"og:site_name\" content=\"scmGalaxy\" \/>\n<meta property=\"article:published_time\" content=\"2016-10-17T20:57:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-02-27T09:49:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2016\/10\/configuring-web-proxy-on-ce.png\" \/>\n\t<meta property=\"og:image:width\" content=\"600\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"scmgalaxy K\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"scmgalaxy K\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/configuring-web-proxy-on-centos\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/configuring-web-proxy-on-centos\\\/\"},\"author\":{\"name\":\"scmgalaxy K\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/fc12ad190f540e79460243c81148d102\"},\"headline\":\"How to Configure Web Proxy on CentOS | Tutorials | scmGalaxy\",\"datePublished\":\"2016-10-17T20:57:35+00:00\",\"dateModified\":\"2021-02-27T09:49:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/configuring-web-proxy-on-centos\\\/\"},\"wordCount\":90,\"commentCount\":1,\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/configuring-web-proxy-on-centos\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2016\\\/10\\\/configuring-web-proxy-on-ce.png\",\"keywords\":[\"CentOS\",\"CentOS Proxy configuration\",\"configure\",\"Configure Web Proxy on CentOS\",\"How\",\"Proxy on CentOS\",\"Web Proxy\"],\"articleSection\":[\"Operating Systems\",\"Unix \\\/ Linux\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/configuring-web-proxy-on-centos\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/configuring-web-proxy-on-centos\\\/\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/configuring-web-proxy-on-centos\\\/\",\"name\":\"How to Configure Web Proxy on CentOS | Tutorials | scmGalaxy - scmGalaxy\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/configuring-web-proxy-on-centos\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/configuring-web-proxy-on-centos\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2016\\\/10\\\/configuring-web-proxy-on-ce.png\",\"datePublished\":\"2016-10-17T20:57:35+00:00\",\"dateModified\":\"2021-02-27T09:49:38+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/fc12ad190f540e79460243c81148d102\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/configuring-web-proxy-on-centos\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/configuring-web-proxy-on-centos\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/configuring-web-proxy-on-centos\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2016\\\/10\\\/configuring-web-proxy-on-ce.png\",\"contentUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2016\\\/10\\\/configuring-web-proxy-on-ce.png\",\"width\":600,\"height\":400,\"caption\":\"web-proxy-on-centos\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/configuring-web-proxy-on-centos\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Configure Web Proxy on CentOS | Tutorials | scmGalaxy\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\",\"name\":\"scmGalaxy\",\"description\":\"A Platform for Software Engineers\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/fc12ad190f540e79460243c81148d102\",\"name\":\"scmgalaxy K\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g\",\"caption\":\"scmgalaxy K\"},\"sameAs\":[\"http:\\\/\\\/www.DevOpsSchool.com\"],\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/author\\\/scmgalaxy\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Configure Web Proxy on CentOS | Tutorials | scmGalaxy - scmGalaxy","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.scmgalaxy.com\/tutorials\/configuring-web-proxy-on-centos\/","og_locale":"en_US","og_type":"article","og_title":"How to Configure Web Proxy on CentOS | Tutorials | scmGalaxy - scmGalaxy","og_description":"If your internet connection is behind a web proxy, you need to configure the following on your CentOS server: System-wide [&hellip;]","og_url":"https:\/\/www.scmgalaxy.com\/tutorials\/configuring-web-proxy-on-centos\/","og_site_name":"scmGalaxy","article_published_time":"2016-10-17T20:57:35+00:00","article_modified_time":"2021-02-27T09:49:38+00:00","og_image":[{"width":600,"height":400,"url":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2016\/10\/configuring-web-proxy-on-ce.png","type":"image\/png"}],"author":"scmgalaxy K","twitter_card":"summary_large_image","twitter_misc":{"Written by":"scmgalaxy K","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/configuring-web-proxy-on-centos\/#article","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/configuring-web-proxy-on-centos\/"},"author":{"name":"scmgalaxy K","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/fc12ad190f540e79460243c81148d102"},"headline":"How to Configure Web Proxy on CentOS | Tutorials | scmGalaxy","datePublished":"2016-10-17T20:57:35+00:00","dateModified":"2021-02-27T09:49:38+00:00","mainEntityOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/configuring-web-proxy-on-centos\/"},"wordCount":90,"commentCount":1,"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/configuring-web-proxy-on-centos\/#primaryimage"},"thumbnailUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2016\/10\/configuring-web-proxy-on-ce.png","keywords":["CentOS","CentOS Proxy configuration","configure","Configure Web Proxy on CentOS","How","Proxy on CentOS","Web Proxy"],"articleSection":["Operating Systems","Unix \/ Linux"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.scmgalaxy.com\/tutorials\/configuring-web-proxy-on-centos\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/configuring-web-proxy-on-centos\/","url":"https:\/\/www.scmgalaxy.com\/tutorials\/configuring-web-proxy-on-centos\/","name":"How to Configure Web Proxy on CentOS | Tutorials | scmGalaxy - scmGalaxy","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/configuring-web-proxy-on-centos\/#primaryimage"},"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/configuring-web-proxy-on-centos\/#primaryimage"},"thumbnailUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2016\/10\/configuring-web-proxy-on-ce.png","datePublished":"2016-10-17T20:57:35+00:00","dateModified":"2021-02-27T09:49:38+00:00","author":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/fc12ad190f540e79460243c81148d102"},"breadcrumb":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/configuring-web-proxy-on-centos\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.scmgalaxy.com\/tutorials\/configuring-web-proxy-on-centos\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/configuring-web-proxy-on-centos\/#primaryimage","url":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2016\/10\/configuring-web-proxy-on-ce.png","contentUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2016\/10\/configuring-web-proxy-on-ce.png","width":600,"height":400,"caption":"web-proxy-on-centos"},{"@type":"BreadcrumbList","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/configuring-web-proxy-on-centos\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.scmgalaxy.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"How to Configure Web Proxy on CentOS | Tutorials | scmGalaxy"}]},{"@type":"WebSite","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website","url":"https:\/\/www.scmgalaxy.com\/tutorials\/","name":"scmGalaxy","description":"A Platform for Software Engineers","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.scmgalaxy.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/fc12ad190f540e79460243c81148d102","name":"scmgalaxy K","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g","caption":"scmgalaxy K"},"sameAs":["http:\/\/www.DevOpsSchool.com"],"url":"https:\/\/www.scmgalaxy.com\/tutorials\/author\/scmgalaxy\/"}]}},"_links":{"self":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/493","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/comments?post=493"}],"version-history":[{"count":2,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/493\/revisions"}],"predecessor-version":[{"id":2955,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/493\/revisions\/2955"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media\/2953"}],"wp:attachment":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media?parent=493"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/categories?post=493"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/tags?post=493"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}