{"id":705,"date":"2012-07-13T15:40:12","date_gmt":"2012-07-13T07:40:12","guid":{"rendered":"http:\/\/rmohan.com\/?p=705"},"modified":"2012-07-13T15:40:37","modified_gmt":"2012-07-13T07:40:37","slug":"how-to-secure-reverse-proxy-or-forward-proxy","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=705","title":{"rendered":"How to secure reverse proxy or Forward proxy"},"content":{"rendered":"<p><strong>How to secure reverse proxy or Forward proxy<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>ProxyPreserveHost On<\/p>\n<p>&lt;Proxy *&gt;<br \/>\nOrder deny,allow<br \/>\nAllow from all<br \/>\n&lt;\/Proxy&gt;<\/p>\n<p>ProxyPass\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/gonvaled\/examples\/jsonrpc\/output\/services\/ http:\/\/localhost:8000\/services\/<br \/>\nProxyPassReverse \/gonvaled\/examples\/jsonrpc\/output\/services\/ http:\/\/localhost:8000\/services\/<\/p>\n<p>&lt;IfModule mod_proxy.c&gt;<br \/>\n#turning ProxyRequests on and allowing proxying from all may allow<br \/>\n#spammers to use your proxy to send email.<\/p>\n<p>ProxyRequests Off<br \/>\n&lt;Proxy *&gt;<br \/>\nAddDefaultCharset off<br \/>\nOrder Allow,Deny<br \/>\nAllow from all<br \/>\n&lt;\/Proxy&gt;<\/p>\n<p>ProxyPass \/transmission http:\/\/localhost:9091\/transmission<br \/>\nProxyPassReverse \/transmission http:\/\/localhost:9091\/transmission<br \/>\n# Line below is optional<br \/>\nRedirect permanent \/transmission https:\/\/myserver.com\/transmission\/web\/<\/p>\n<p># Enable\/disable the handling of HTTP\/1.1 &#8220;Via:&#8221; headers.<br \/>\n# (&#8220;Full&#8221; adds the server version; &#8220;Block&#8221; removes all outgoing Via: headers)<br \/>\n# Set to one of: Off | On | Full | Block<\/p>\n<p>ProxyVia On<br \/>\n&lt;\/IfModule&gt;<\/p>\n<p>ifmodule mod_proxy.c=&#8221;&#8221;&gt;<br \/>\n# set ProxyRequests off since we&#8217;re only using the ProxyPass and ProxyPassReverse<br \/>\n# directives. this keeps the server secure from<br \/>\n# spammers trying to use your proxy to send email.<\/p>\n<p>ProxyRequests Off<\/p>\n<p>&lt;proxy *=&#8221;&#8221;&gt;<br \/>\nAddDefaultCharset off<br \/>\nOrder deny,allow<br \/>\nAllow from all<br \/>\n#Allow from .example.com<br \/>\n&lt;\/proxy&gt;<\/p>\n<p># Enable\/disable the handling of HTTP\/1.1 &#8220;Via:&#8221; headers.<br \/>\n# (&#8220;Full&#8221; adds the server version; &#8220;Block&#8221; removes all outgoing Via: headers)<br \/>\n# Set to one of: Off | On | Full | Block<\/p>\n<p>ProxyVia On&lt;\/ifmodule&gt;<\/p>\n<p># Put this in the main section of your configuration (or desired virtual host, if using Apache virtual hosts)<br \/>\nProxyRequests Off<br \/>\nProxyPreserveHost On<\/p>\n<p>&lt;proxy *=&#8221;&#8221;&gt;<br \/>\nOrder deny,allow<br \/>\nAllow from all<br \/>\n&lt;\/proxy&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to secure reverse proxy or Forward proxy<\/p>\n<p>&nbsp;<\/p>\n<p>ProxyPreserveHost On<\/p>\n<p>&lt;Proxy *&gt; Order deny,allow Allow from all &lt;\/Proxy&gt;<\/p>\n<p>ProxyPass \/gonvaled\/examples\/jsonrpc\/output\/services\/ http:\/\/localhost:8000\/services\/ ProxyPassReverse \/gonvaled\/examples\/jsonrpc\/output\/services\/ http:\/\/localhost:8000\/services\/<\/p>\n<p>&lt;IfModule mod_proxy.c&gt; #turning ProxyRequests on and allowing proxying from all may allow #spammers to use your proxy to send email.<\/p>\n<p>ProxyRequests Off &lt;Proxy *&gt; AddDefaultCharset off Order Allow,Deny Allow from [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/705"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=705"}],"version-history":[{"count":2,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/705\/revisions"}],"predecessor-version":[{"id":707,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/705\/revisions\/707"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=705"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=705"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=705"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}