{"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,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[10],"tags":[14,13],"class_list":["post-24","post","type-post","status-publish","format-standard","hentry","category-servers-linux","tag-apache","tag-zenoss"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Gonzalo Escarr\u00e1\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/blog.escarra.org\/?p=24\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Gonzalo Escarr\u00e1&#039;s Blog\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Zenoss behind Apache proxy | Gonzalo Escarr\u00e1&#039;s Blog\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/blog.escarra.org\/?p=24\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2009-06-10T16:01:05+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2009-06-10T16:01:05+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Zenoss behind Apache proxy | Gonzalo Escarr\u00e1&#039;s Blog\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/blog.escarra.org\\\/?p=24#article\",\"name\":\"Zenoss behind Apache proxy | Gonzalo Escarr\\u00e1's Blog\",\"headline\":\"Zenoss behind Apache proxy\",\"author\":{\"@id\":\"https:\\\/\\\/blog.escarra.org\\\/?author=2#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/blog.escarra.org\\\/#organization\"},\"datePublished\":\"2009-06-10T10:01:05-06:00\",\"dateModified\":\"2009-06-10T10:01:05-06:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/blog.escarra.org\\\/?p=24#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.escarra.org\\\/?p=24#webpage\"},\"articleSection\":\"Servers - Linux, apache, zenoss\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/blog.escarra.org\\\/?p=24#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.escarra.org#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/blog.escarra.org\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.escarra.org\\\/?cat=10#listItem\",\"name\":\"Servers - Linux\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.escarra.org\\\/?cat=10#listItem\",\"position\":2,\"name\":\"Servers - Linux\",\"item\":\"https:\\\/\\\/blog.escarra.org\\\/?cat=10\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.escarra.org\\\/?p=24#listItem\",\"name\":\"Zenoss behind Apache proxy\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.escarra.org#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.escarra.org\\\/?p=24#listItem\",\"position\":3,\"name\":\"Zenoss behind Apache proxy\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.escarra.org\\\/?cat=10#listItem\",\"name\":\"Servers - Linux\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/blog.escarra.org\\\/#organization\",\"name\":\"Gonzalo Escarr\\u00e1's Blog\",\"description\":\"Lync, networking, UC, VoIP, and some other hacks.\",\"url\":\"https:\\\/\\\/blog.escarra.org\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/blog.escarra.org\\\/?author=2#author\",\"url\":\"https:\\\/\\\/blog.escarra.org\\\/?author=2\",\"name\":\"Gonzalo Escarr\\u00e1\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/blog.escarra.org\\\/?p=24#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/412a9d4cfb2f5ac9b4ab7f1aea403004a622f77692b19e40c7b3c23c5ed29124?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Gonzalo Escarr\\u00e1\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/blog.escarra.org\\\/?p=24#webpage\",\"url\":\"https:\\\/\\\/blog.escarra.org\\\/?p=24\",\"name\":\"Zenoss behind Apache proxy | Gonzalo Escarr\\u00e1's Blog\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.escarra.org\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/blog.escarra.org\\\/?p=24#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/blog.escarra.org\\\/?author=2#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/blog.escarra.org\\\/?author=2#author\"},\"datePublished\":\"2009-06-10T10:01:05-06:00\",\"dateModified\":\"2009-06-10T10:01:05-06:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/blog.escarra.org\\\/#website\",\"url\":\"https:\\\/\\\/blog.escarra.org\\\/\",\"name\":\"Gonzalo Escarr\\u00e1's Blog\",\"description\":\"Lync, networking, UC, VoIP, and some other hacks.\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/blog.escarra.org\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Zenoss behind Apache proxy | Gonzalo Escarr\u00e1's Blog","description":"","canonical_url":"https:\/\/blog.escarra.org\/?p=24","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.escarra.org\/?p=24#article","name":"Zenoss behind Apache proxy | Gonzalo Escarr\u00e1's Blog","headline":"Zenoss behind Apache proxy","author":{"@id":"https:\/\/blog.escarra.org\/?author=2#author"},"publisher":{"@id":"https:\/\/blog.escarra.org\/#organization"},"datePublished":"2009-06-10T10:01:05-06:00","dateModified":"2009-06-10T10:01:05-06:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/blog.escarra.org\/?p=24#webpage"},"isPartOf":{"@id":"https:\/\/blog.escarra.org\/?p=24#webpage"},"articleSection":"Servers - Linux, apache, zenoss"},{"@type":"BreadcrumbList","@id":"https:\/\/blog.escarra.org\/?p=24#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/blog.escarra.org#listItem","position":1,"name":"Home","item":"https:\/\/blog.escarra.org","nextItem":{"@type":"ListItem","@id":"https:\/\/blog.escarra.org\/?cat=10#listItem","name":"Servers - Linux"}},{"@type":"ListItem","@id":"https:\/\/blog.escarra.org\/?cat=10#listItem","position":2,"name":"Servers - Linux","item":"https:\/\/blog.escarra.org\/?cat=10","nextItem":{"@type":"ListItem","@id":"https:\/\/blog.escarra.org\/?p=24#listItem","name":"Zenoss behind Apache proxy"},"previousItem":{"@type":"ListItem","@id":"https:\/\/blog.escarra.org#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/blog.escarra.org\/?p=24#listItem","position":3,"name":"Zenoss behind Apache proxy","previousItem":{"@type":"ListItem","@id":"https:\/\/blog.escarra.org\/?cat=10#listItem","name":"Servers - Linux"}}]},{"@type":"Organization","@id":"https:\/\/blog.escarra.org\/#organization","name":"Gonzalo Escarr\u00e1's Blog","description":"Lync, networking, UC, VoIP, and some other hacks.","url":"https:\/\/blog.escarra.org\/"},{"@type":"Person","@id":"https:\/\/blog.escarra.org\/?author=2#author","url":"https:\/\/blog.escarra.org\/?author=2","name":"Gonzalo Escarr\u00e1","image":{"@type":"ImageObject","@id":"https:\/\/blog.escarra.org\/?p=24#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/412a9d4cfb2f5ac9b4ab7f1aea403004a622f77692b19e40c7b3c23c5ed29124?s=96&d=mm&r=g","width":96,"height":96,"caption":"Gonzalo Escarr\u00e1"}},{"@type":"WebPage","@id":"https:\/\/blog.escarra.org\/?p=24#webpage","url":"https:\/\/blog.escarra.org\/?p=24","name":"Zenoss behind Apache proxy | Gonzalo Escarr\u00e1's Blog","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/blog.escarra.org\/#website"},"breadcrumb":{"@id":"https:\/\/blog.escarra.org\/?p=24#breadcrumblist"},"author":{"@id":"https:\/\/blog.escarra.org\/?author=2#author"},"creator":{"@id":"https:\/\/blog.escarra.org\/?author=2#author"},"datePublished":"2009-06-10T10:01:05-06:00","dateModified":"2009-06-10T10:01:05-06:00"},{"@type":"WebSite","@id":"https:\/\/blog.escarra.org\/#website","url":"https:\/\/blog.escarra.org\/","name":"Gonzalo Escarr\u00e1's Blog","description":"Lync, networking, UC, VoIP, and some other hacks.","inLanguage":"en-US","publisher":{"@id":"https:\/\/blog.escarra.org\/#organization"}}]},"og:locale":"en_US","og:site_name":"Gonzalo Escarr\u00e1's Blog","og:type":"article","og:title":"Zenoss behind Apache proxy | Gonzalo Escarr\u00e1's Blog","og:url":"https:\/\/blog.escarra.org\/?p=24","article:published_time":"2009-06-10T16:01:05+00:00","article:modified_time":"2009-06-10T16:01:05+00:00","twitter:card":"summary","twitter:title":"Zenoss behind Apache proxy | Gonzalo Escarr\u00e1's Blog"},"aioseo_meta_data":{"post_id":"24","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-04-13 20:13:48","updated":"2025-06-04 07:34:23","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/blog.escarra.org\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/blog.escarra.org\/?cat=10\" title=\"Servers - Linux\">Servers - Linux<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tZenoss behind Apache proxy\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/blog.escarra.org"},{"label":"Servers - Linux","link":"https:\/\/blog.escarra.org\/?cat=10"},{"label":"Zenoss behind Apache proxy","link":"https:\/\/blog.escarra.org\/?p=24"}],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/blog.escarra.org\/index.php?rest_route=\/wp\/v2\/posts\/24","targetHints":{"allow":["GET"]}}],"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}]}}