{"id":517,"date":"2011-01-28T00:30:38","date_gmt":"2011-12-11T05:51:50","guid":{"rendered":"http:\/\/kraftek.com\/blog\/apache-mod_proxy-to-publish-your-intranet-apps-without-migrating-them\/"},"modified":"2011-01-28T00:30:38","modified_gmt":"2011-12-11T05:51:50","slug":"apache-mod_proxy-to-publish-your-intranet-apps-without-migrating-them","status":"publish","type":"post","link":"\/blog\/index.php\/apache-mod_proxy-to-publish-your-intranet-apps-without-migrating-them\/","title":{"rendered":"Apache mod_proxy, to publish your intranet apps without migrating them"},"content":{"rendered":"<p>Imagine you want to publish a webapp from your intranet, without moving it from your internal server, just adding some<br \/>\nurl to your existing external webserver and mapping it to the internal server, that is what mod_proxy does.<br \/>\nhttp:\/\/www.kraftek.com\/orca\/orcallator\/<br \/>\n) , thanx to my vpn and mod_proxy.<br \/>\nFirst you have to compile apache to have proxy modules and friends:<br \/>\n# .\/configure &#8211;enable-so &#8211;enable-mods-shared=&#8221;all proxy proxy_http proxy_ftp proxy_connect headers<br \/>\ndeflate mod_deflate mod_ssl&#8221;<br \/>\n# make &amp;&amp; make install<br \/>\nGet mod_proxy_html from http:\/\/apache.webthing.com\/mod_proxy_html\/, and build it into apache<br \/>\n# \/usr\/local\/apache2\/bin\/apxs -c -I\/usr\/include\/libxml2 -i mod_proxy_html.c<br \/>\nEdit your httpd.conf and, in my case, to map orca&#8217;s directory, I wrote this:<br \/>\nProxyRequests off<br \/>\nProxyPass \/orca\/ http:\/\/dell\/orca\/<br \/>\n&lt;Location \/orca\/&gt;<br \/>\nProxyPassReverse \/<br \/>\nSetOutputFilter proxy-html<br \/>\nProxyHTMLURLMap \/ \/orca\/<br \/>\nProxyHTMLURLMap \/orca \/orca<br \/>\nRequestHeader unset Accept-Encoding<br \/>\n&lt;\/Location&gt;<br \/>\nvoila!, got http:\/\/www.kraftek.com\/orca\/orcallator\/ mapped to an internal machine called &#8220;dell&#8221;, now you can<br \/>\nsee some pages from my internal machine!<br \/>\nI hated the fact that i needed to mirror the whole orca directory overnight&#8230; Now I don&#8217;t need to do that!<br \/>\n288\/433<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Imagine you want to publish a webapp from your intranet, without moving it from your internal server, just adding some url to your existing external webserver and mapping it to the internal server, that is what mod_proxy does. http:\/\/www.kraftek.com\/orca\/orcallator\/ ) , thanx to my vpn and mod_proxy. First you have to compile apache to have [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-517","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/517","targetHints":{"allow":["GET"]}}],"collection":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=517"}],"version-history":[{"count":0,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/517\/revisions"}],"wp:attachment":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=517"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=517"},{"taxonomy":"post_tag","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=517"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}