{"id":3539,"date":"2023-07-25T08:16:29","date_gmt":"2023-07-25T07:16:29","guid":{"rendered":"https:\/\/kudzia.eu\/b\/?p=3539"},"modified":"2023-07-25T08:16:48","modified_gmt":"2023-07-25T07:16:48","slug":"apache2-url-based-exception-for-proxypass","status":"publish","type":"post","link":"https:\/\/kudzia.eu\/b\/2023\/07\/apache2-url-based-exception-for-proxypass\/","title":{"rendered":"Apache2: url-based exception for ProxyPass"},"content":{"rendered":"\n<p>i have apache2 reverse proxy which passes traffic to some application server. everything going to \/server\/ is handled by http:\/\/localhost:8000. <\/p>\n\n\n\n<p>i had to do one exception &#8211; serve content for \/server\/something.txt from a static file. here&#8217;s what i did:<\/p>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Alias \/server\/something.txt \/var\/www\/something.txt\r\nProxyPass \/server\/something.txt !\r\nProxyPass \/server\/ http:\/\/localhost:8000 retry=1\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>i have apache2 reverse proxy which passes traffic to some application server. everything going to \/server\/ is handled by http:\/\/localhost:8000. i had to do one exception &#8211; serve content for \/server\/something.txt from a static file. here&#8217;s what i did:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[51],"tags":[106],"class_list":["post-3539","post","type-post","status-publish","format-standard","hentry","category-unimportant","tag-apache2"],"_links":{"self":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/3539","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/comments?post=3539"}],"version-history":[{"count":2,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/3539\/revisions"}],"predecessor-version":[{"id":3542,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/3539\/revisions\/3542"}],"wp:attachment":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/media?parent=3539"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/categories?post=3539"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/tags?post=3539"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}