{"id":353,"date":"2017-01-28T21:07:06","date_gmt":"2017-01-28T12:07:06","guid":{"rendered":"https:\/\/blog.chanha.me\/?p=353"},"modified":"2017-01-29T01:06:56","modified_gmt":"2017-01-28T16:06:56","slug":"proxypass%eb%a5%bc-%ed%86%b5%ed%95%b4-%eb%a1%9c%ec%bb%ac-%ec%84%9c%eb%b9%84%ec%8a%a4%ec%97%90-%eb%8f%84%eb%a9%94%ec%9d%b8-%ec%97%b0%ea%b2%b0%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/blog.chanha.kr\/?p=353","title":{"rendered":"Proxypass\ub97c \ud1b5\ud574 \ub85c\uceec \uc11c\ube44\uc2a4\uc5d0 \ub3c4\uba54\uc778 \uc5f0\uacb0\ud558\uae30"},"content":{"rendered":"<p>Proxypass\ub97c \ud1b5\ud574\uc11c Plex\uc640 Subsonic\uacfc \uac19\uc774 \ub3c4\uba54\uc778\uc744 \uc81c\uacf5\ud574\uc8fc\uc9c0 \uc54a\ub294 \uc11c\ube44\uc2a4\ub97c \ub3c4\uba54\uc778 \uc8fc\uc18c\uc5d0 \uc5f0\uacb0\ud558\ub294 \uac83\uc774 \uac00\ub2a5\ud558\ub2e4.<\/p>\n<pre class=\"lang:sh decode:true \">sudo vim \/etc\/apache2\/sites-available\/proxy.conf<\/pre>\n<p>\ub97c \ud1b5\ud574 conf\ud30c\uc77c\uc744 \uc0dd\uc131\ud574\uc900\ub2e4.<\/p>\n<p>\uadf8 \ud6c4 Plex\ub97c Proxy\uc5f0\uacb0\ud558\uae30 \uc704\ud574\uc11c\ub294 \uc544\ub798\uc640 \uac19\uc740 \ucf54\ub4dc\ub97c<\/p>\n<pre class=\"lang:apache decode:true \"> &lt;VirtualHost *:80&gt;\r\n     ServerName &lt;\ub3c4\uba54\uc778\uc8fc\uc18c&gt;\r\n\r\n    ProxyRequests Off\r\n    ProxyPreserveHost On\r\n    ProxyPass \/:\/ ws:\/\/localhost:32400\/:\/\r\n    ProxyPassReverse \/:\/ ws:\/\/localhost:32400\/:\/\r\n\r\n    ProxyPass \/ http:\/\/localhost:32400\/\r\n    ProxyPassReverse \/ http:\/\/localhost:32400\/\r\n\r\n    RewriteEngine on\r\n    RewriteCond %{REQUEST_URI} !^\/web\r\n    RewriteCond %{HTTP:X-Plex-Device} ^$\r\n    RewriteCond %{QUERY_STRING} (^|&amp;)X-Plex-Device=(&amp;|$) [OR]\r\n    RewriteCond %{QUERY_STRING} !(^|&amp;)X-Plex-Device=\r\n    RewriteRule ^\/$ \/web\/$1 [R,L]\r\n\r\n   &lt;Proxy *&gt;\r\n       Order deny,allow\r\n       Allow from all\r\n       Require all granted\r\n    &lt;\/Proxy&gt;\r\n&lt;\/VirtualHost&gt;<\/pre>\n<p>\ub2e4\ub978 \ub85c\uceec \uc11c\ube44\uc2a4\ub294<\/p>\n<pre class=\"lang:apache decode:true\">&lt;VirtualHost *:80&gt;\r\n    ServerName &lt;\ub3c4\uba54\uc778\uc8fc\uc18c&gt;\r\n\r\n    ProxyPreserveHost On\r\n    ProxyRequests Off\r\n    &lt;Location \/&gt;\r\n        ProxyPass http:\/\/127.0.0.1:&lt;\ub0b4\ubd80\ud3ec\ud2b8&gt;\/\r\n        ProxyPassReverse http:\/\/127.0.0.1:&lt;\ub0b4\ubd80\ud3ec\ud2b8&gt;\/\r\n        Order allow,deny\r\n        Allow from all\r\n    &lt;\/Location&gt;\r\n&lt;\/VirtualHost&gt;\r\n<\/pre>\n<p>\ub0b4\ubd80\ud3ec\ud2b8\ub97c \ubcc0\uacbd\ud574 \ucd94\uac00\ud574\uc8fc\uba74 \ub41c\ub2e4. (\ub9ac\ub2e4\uc774\ub809\ud2b8\uc640 \uac19\uc774 \uc544\ub798\ucabd\uc5d0 \uacc4\uc18d\ud574\uc11c \ucd94\uac00\ud574\uc8fc\uba74 \ub41c\ub2e4.)<\/p>\n<p>\uadf8 \ud6c4 HTTPS\ub97c \uc124\uc815\ud574\uc8fc\ub824\uba74 <a href=\"https:\/\/blog.chanha.me\/?p=337\" target=\"_blank\">\uc774 \uacf3<\/a>\uc758 \uc124\uc815\uc744 \ubc18\ubcf5\ud574\uc8fc\uba74 \ub41c\ub2e4.<\/p>\n<p>(http\ub9ac\ub2e4\uc774\ub809\ud2b8 \ub610\ud55c, ssl\uc124\uc815\ud6c4 \ub611\uac19\uc740 \uc124\uc815\uc744 \ucd94\uac00\ud574\uc8fc\uba74 \ub41c\ub2e4.)<\/p>\n<div class='ez_cc_license_block'><a rel=\"license\" href=\"http:\/\/creativecommons.org\/licenses\/by-nc-sa\/4.0\/\"><img decoding=\"async\" alt=\"Creative Commons License\" style=\"border-width:0\" src=\"http:\/\/i.creativecommons.org\/l\/by-nc-sa\/4.0\/88x31.png\"\/><\/a><br\/>This work is licensed under a <a rel=\"license\" href=\"http:\/\/creativecommons.org\/licenses\/by-nc-sa\/4.0\/\">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License<\/a>.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Proxypass\ub97c \ud1b5\ud574\uc11c Plex\uc640 Subsonic\uacfc \uac19\uc774 \ub3c4\uba54\uc778\uc744 \uc81c\uacf5\ud574\uc8fc\uc9c0 \uc54a\ub294 \uc11c\ube44\uc2a4\ub97c \ub3c4\uba54\uc778 \uc8fc\uc18c\uc5d0 \uc5f0\uacb0\ud558\ub294 \uac83\uc774 \uac00\ub2a5\ud558\ub2e4. sudo vim \/etc\/apache2\/sites-available\/proxy.conf \ub97c \ud1b5\ud574 conf\ud30c\uc77c\uc744 \uc0dd\uc131\ud574\uc900\ub2e4. \uadf8 \ud6c4 Plex\ub97c Proxy\uc5f0\uacb0\ud558\uae30 \uc704\ud574\uc11c\ub294 \uc544\ub798\uc640 \uac19\uc740 \ucf54\ub4dc\ub97c &lt;VirtualHost *:80&gt; ServerName &lt;\ub3c4\uba54\uc778\uc8fc\uc18c&gt; ProxyRequests Off ProxyPreserveHost On ProxyPass \/:\/ ws:\/\/localhost:32400\/:\/ ProxyPassReverse \/:\/ ws:\/\/localhost:32400\/:\/ ProxyPass \/ http:\/\/localhost:32400\/ ProxyPassReverse \/ http:\/\/localhost:32400\/ RewriteEngine on RewriteCond %{REQUEST_URI} !^\/web RewriteCond %{HTTP:X-Plex-Device} ^$ RewriteCond %{QUERY_STRING} (^|&amp;)X-Plex-Device=(&amp;|$) [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-353","post","type-post","status-publish","format-standard","hentry","category-nas","clearfix"],"_links":{"self":[{"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=\/wp\/v2\/posts\/353","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=353"}],"version-history":[{"count":3,"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=\/wp\/v2\/posts\/353\/revisions"}],"predecessor-version":[{"id":391,"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=\/wp\/v2\/posts\/353\/revisions\/391"}],"wp:attachment":[{"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=353"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}