{"id":24,"date":"2009-06-10T10:01:05","date_gmt":"2009-06-10T16:01:05","guid":{"rendered":"http:\/\/blog.escarra.org\/?p=24"},"modified":"2009-06-10T10:01:05","modified_gmt":"2009-06-10T16:01:05","slug":"zenoss-behind-apache-proxy","status":"publish","type":"post","link":"https:\/\/blog.escarra.org\/?p=24","title":{"rendered":"Zenoss behind Apache proxy"},"content":{"rendered":"<p>Pulling my hair out trying to figure out how to set the URI for Zenoss to work behind an Apache mod_proxy setup, I figured out the solution is to use a rewrite rule on the virtual host within Apache. Here&#8217;s the rule I&#8217;m using:<\/p>\n<p>RewriteEngine on<br \/>\nRewriteRule ^\/(.*) <a href=\"http:\/\/internalserver:8080\/VirtualHostBase\/http\/externalserver:80\/VirtualHostRoot\/$1\">http:\/\/internalserver:8080\/VirtualHostBase\/http\/externalserver:80\/VirtualHostRoot\/$1<\/a> [L,P]<\/p>\n<p>Of course, change &#8220;internalserver&#8221; and &#8220;externalserver&#8221; for your hosts, and &#8220;externalserver&#8221; should match your ServerName definition in the virtual host config.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Pulling my hair out trying to figure out how to set the URI for Zenoss to work behind an Apache mod_proxy setup, I figured out the solution is to use a rewrite rule on the virtual host within Apache. Here&#8217;s the rule I&#8217;m using: RewriteEngine on RewriteRule ^\/(.*) http:\/\/internalserver:8080\/VirtualHostBase\/http\/externalserver:80\/VirtualHostRoot\/$1 [L,P] Of course, change &#8220;internalserver&#8221; and [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"footnotes":"","_jetpack_memberships_contains_paid_content":false,"jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[10],"tags":[14,13],"jetpack_publicize_connections":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/blog.escarra.org\/index.php?rest_route=\/wp\/v2\/posts\/24"}],"collection":[{"href":"https:\/\/blog.escarra.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.escarra.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.escarra.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.escarra.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=24"}],"version-history":[{"count":1,"href":"https:\/\/blog.escarra.org\/index.php?rest_route=\/wp\/v2\/posts\/24\/revisions"}],"predecessor-version":[{"id":25,"href":"https:\/\/blog.escarra.org\/index.php?rest_route=\/wp\/v2\/posts\/24\/revisions\/25"}],"wp:attachment":[{"href":"https:\/\/blog.escarra.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=24"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.escarra.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=24"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.escarra.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=24"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}