{"id":95,"date":"2008-11-08T11:24:02","date_gmt":"2008-11-08T01:54:02","guid":{"rendered":"http:\/\/www.clearchain.com\/blog\/?p=95"},"modified":"2008-11-08T11:24:02","modified_gmt":"2008-11-08T01:54:02","slug":"proxying-a-pagewebsite-through-apache","status":"publish","type":"post","link":"https:\/\/www.clearchain.com\/blog\/posts\/proxying-a-pagewebsite-through-apache","title":{"rendered":"Proxying a page\/website through Apache"},"content":{"rendered":"<p>Sometimes you want to expose one port in your firewall but not another. However, often you have different servers running on different ports. Apache has the ability to proxy pages, this allows one server to be externally visible with the other running only locally. It allows you to secure one server and only open one port to external attacks. To setup this proxying put the following in your apache config file:<\/p>\n<pre>    RewriteEngine on\r\n    RewriteLog \/SOMELOGFILE\r\n    RewriteLogLevel 2\r\n    RewriteRule ^\/(.*)$ http:\/\/localhost:8180\/$1 [P]\r\n    ProxyPassReverse \/ http:\/\/localhost:8180\/<\/pre>\n<p>The above will proxy the entire domain to the server on the same machine running on port 8180. The <code>[P]<\/code> tells apache to use the <em>proxy<\/em> module to do the work. This is not a redirect but a proxy so it hides the internal URL with the external facing one. The <code>ProxyPassReverse<\/code> directive tells apache to do the rewrite of the URL to remove the <code>localhost:8180<\/code> bit back to the originating url<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes you want to expose one port in your firewall but not another. However, often you have different servers running on different ports. Apache has the ability to proxy pages, this allows one server to be externally visible with the other running only locally. It allows you to secure one server and only open one<a href=\"https:\/\/www.clearchain.com\/blog\/posts\/proxying-a-pagewebsite-through-apache\"> <font size=-2>[..more..]<\/font><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34,21],"tags":[73,56],"class_list":["post-95","post","type-post","status-publish","format-standard","hentry","category-computers","category-opensource","tag-apache","tag-proxy"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Proxying a page\/website through Apache  - ClearChain<\/title>\n<meta name=\"description\" content=\"Sometimes you want to expose one port in your firewall but not another. However, often you have different servers running on different ports. Apache has\" \/>\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.clearchain.com\/blog\/posts\/proxying-a-pagewebsite-through-apache\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Benjamin Close\" \/>\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.clearchain.com\/blog\/posts\/proxying-a-pagewebsite-through-apache#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.clearchain.com\/blog\/posts\/proxying-a-pagewebsite-through-apache\"},\"author\":{\"name\":\"Benjamin Close\",\"@id\":\"https:\/\/www.clearchain.com\/blog\/#\/schema\/person\/aef6faa2c32188398139db9270ca1c98\"},\"headline\":\"Proxying a page\/website through Apache\",\"datePublished\":\"2008-11-08T01:54:02+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.clearchain.com\/blog\/posts\/proxying-a-pagewebsite-through-apache\"},\"wordCount\":145,\"commentCount\":0,\"keywords\":[\"apache\",\"proxy\"],\"articleSection\":[\"Computers\",\"OpenSource\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.clearchain.com\/blog\/posts\/proxying-a-pagewebsite-through-apache#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.clearchain.com\/blog\/posts\/proxying-a-pagewebsite-through-apache\",\"url\":\"https:\/\/www.clearchain.com\/blog\/posts\/proxying-a-pagewebsite-through-apache\",\"name\":\"Proxying a page\/website through Apache - ClearChain\",\"isPartOf\":{\"@id\":\"https:\/\/www.clearchain.com\/blog\/#website\"},\"datePublished\":\"2008-11-08T01:54:02+00:00\",\"author\":{\"@id\":\"https:\/\/www.clearchain.com\/blog\/#\/schema\/person\/aef6faa2c32188398139db9270ca1c98\"},\"description\":\"Sometimes you want to expose one port in your firewall but not another. However, often you have different servers running on different ports. Apache has\",\"breadcrumb\":{\"@id\":\"https:\/\/www.clearchain.com\/blog\/posts\/proxying-a-pagewebsite-through-apache#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.clearchain.com\/blog\/posts\/proxying-a-pagewebsite-through-apache\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.clearchain.com\/blog\/posts\/proxying-a-pagewebsite-through-apache#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.clearchain.com\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Proxying a page\/website through Apache\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.clearchain.com\/blog\/#website\",\"url\":\"https:\/\/www.clearchain.com\/blog\/\",\"name\":\"ClearChain\",\"description\":\"-= Daily Happenings =-\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.clearchain.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.clearchain.com\/blog\/#\/schema\/person\/aef6faa2c32188398139db9270ca1c98\",\"name\":\"Benjamin Close\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.clearchain.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/19dca0aa372edfa901b93c556dfda2e78ad4434558fe4d139598e086315d714a?s=96&d=mm&r=pg\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/19dca0aa372edfa901b93c556dfda2e78ad4434558fe4d139598e086315d714a?s=96&d=mm&r=pg\",\"caption\":\"Benjamin Close\"},\"sameAs\":[\"http:\/\/www.clearchain.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Proxying a page\/website through Apache  - ClearChain","description":"Sometimes you want to expose one port in your firewall but not another. However, often you have different servers running on different ports. Apache has","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.clearchain.com\/blog\/posts\/proxying-a-pagewebsite-through-apache","twitter_misc":{"Written by":"Benjamin Close","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.clearchain.com\/blog\/posts\/proxying-a-pagewebsite-through-apache#article","isPartOf":{"@id":"https:\/\/www.clearchain.com\/blog\/posts\/proxying-a-pagewebsite-through-apache"},"author":{"name":"Benjamin Close","@id":"https:\/\/www.clearchain.com\/blog\/#\/schema\/person\/aef6faa2c32188398139db9270ca1c98"},"headline":"Proxying a page\/website through Apache","datePublished":"2008-11-08T01:54:02+00:00","mainEntityOfPage":{"@id":"https:\/\/www.clearchain.com\/blog\/posts\/proxying-a-pagewebsite-through-apache"},"wordCount":145,"commentCount":0,"keywords":["apache","proxy"],"articleSection":["Computers","OpenSource"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.clearchain.com\/blog\/posts\/proxying-a-pagewebsite-through-apache#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.clearchain.com\/blog\/posts\/proxying-a-pagewebsite-through-apache","url":"https:\/\/www.clearchain.com\/blog\/posts\/proxying-a-pagewebsite-through-apache","name":"Proxying a page\/website through Apache - ClearChain","isPartOf":{"@id":"https:\/\/www.clearchain.com\/blog\/#website"},"datePublished":"2008-11-08T01:54:02+00:00","author":{"@id":"https:\/\/www.clearchain.com\/blog\/#\/schema\/person\/aef6faa2c32188398139db9270ca1c98"},"description":"Sometimes you want to expose one port in your firewall but not another. However, often you have different servers running on different ports. Apache has","breadcrumb":{"@id":"https:\/\/www.clearchain.com\/blog\/posts\/proxying-a-pagewebsite-through-apache#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.clearchain.com\/blog\/posts\/proxying-a-pagewebsite-through-apache"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.clearchain.com\/blog\/posts\/proxying-a-pagewebsite-through-apache#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.clearchain.com\/blog"},{"@type":"ListItem","position":2,"name":"Proxying a page\/website through Apache"}]},{"@type":"WebSite","@id":"https:\/\/www.clearchain.com\/blog\/#website","url":"https:\/\/www.clearchain.com\/blog\/","name":"ClearChain","description":"-= Daily Happenings =-","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.clearchain.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.clearchain.com\/blog\/#\/schema\/person\/aef6faa2c32188398139db9270ca1c98","name":"Benjamin Close","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.clearchain.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/19dca0aa372edfa901b93c556dfda2e78ad4434558fe4d139598e086315d714a?s=96&d=mm&r=pg","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/19dca0aa372edfa901b93c556dfda2e78ad4434558fe4d139598e086315d714a?s=96&d=mm&r=pg","caption":"Benjamin Close"},"sameAs":["http:\/\/www.clearchain.com"]}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.clearchain.com\/blog\/wp-json\/wp\/v2\/posts\/95","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.clearchain.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.clearchain.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.clearchain.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.clearchain.com\/blog\/wp-json\/wp\/v2\/comments?post=95"}],"version-history":[{"count":2,"href":"https:\/\/www.clearchain.com\/blog\/wp-json\/wp\/v2\/posts\/95\/revisions"}],"predecessor-version":[{"id":151,"href":"https:\/\/www.clearchain.com\/blog\/wp-json\/wp\/v2\/posts\/95\/revisions\/151"}],"wp:attachment":[{"href":"https:\/\/www.clearchain.com\/blog\/wp-json\/wp\/v2\/media?parent=95"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.clearchain.com\/blog\/wp-json\/wp\/v2\/categories?post=95"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.clearchain.com\/blog\/wp-json\/wp\/v2\/tags?post=95"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}