{"id":1063,"date":"2010-01-01T08:56:10","date_gmt":"2010-01-01T08:56:10","guid":{"rendered":"http:\/\/kraftek.com\/wordpress\/?p=1063"},"modified":"2010-01-01T08:56:10","modified_gmt":"2010-01-01T08:56:10","slug":"lighttpd-reverse-proxy","status":"publish","type":"post","link":"\/blog\/index.php\/lighttpd-reverse-proxy\/","title":{"rendered":"Lighttpd reverse proxy"},"content":{"rendered":"<p>Whenever you visit http:\/\/website\/cam, you get connected to http:\/\/192.168.0.168:80<\/p>\n<pre>$HTTP[\"url\"] =~ \"(^\/cam\/)\" {\r\n  proxy.server  = ( \"\" =&gt; (\r\n    \"192.168.0.168:80\" =&gt; # name \r\n      ( \"host\" =&gt; \"127.0.0.1\",\r\n        \"port\" =&gt; 82\r\n      )\r\n    )\r\n  )\r\n}\r\n\r\n# URL Rewriting Proxy\r\n#\r\n$SERVER[\"socket\"] == \":82\" {\r\n  url.rewrite-once = ( \"^\/cam\/(.*)$\" =&gt; \"\/$1\" )\r\n  proxy.server  = ( \"\" =&gt; (\r\n    \"192.168.0.168:82\" =&gt; # name\r\n      ( \"host\" =&gt; \"192.168.0.168\", # Set the IP address of 192.168.0.168\r\n        \"port\" =&gt; 80\r\n      )\r\n    )\r\n  )\r\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Whenever you visit http:\/\/website\/cam, you get connected to http:\/\/192.168.0.168:80 $HTTP[&#8220;url&#8221;] =~ &#8220;(^\/cam\/)&#8221; { proxy.server = ( &#8220;&#8221; =&gt; ( &#8220;192.168.0.168:80&#8221; =&gt; # name ( &#8220;host&#8221; =&gt; &#8220;127.0.0.1&#8221;, &#8220;port&#8221; =&gt; 82 ) ) ) } # URL Rewriting Proxy # $SERVER[&#8220;socket&#8221;] == &#8220;:82&#8221; { url.rewrite-once = ( &#8220;^\/cam\/(.*)$&#8221; =&gt; &#8220;\/$1&#8221; ) proxy.server = ( &#8220;&#8221; =&gt; [&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-1063","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1063","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=1063"}],"version-history":[{"count":1,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1063\/revisions"}],"predecessor-version":[{"id":1064,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1063\/revisions\/1064"}],"wp:attachment":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=1063"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=1063"},{"taxonomy":"post_tag","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=1063"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}