{"id":570,"date":"2008-01-24T17:58:17","date_gmt":"2008-01-24T17:58:17","guid":{"rendered":"http:\/\/wiki.davelevy.info\/?p=570"},"modified":"2019-01-04T16:45:14","modified_gmt":"2019-01-04T16:45:14","slug":"apache-as-a-proxy-server-for-snipsnap","status":"publish","type":"post","link":"https:\/\/davelevy.info\/wiki\/apache-as-a-proxy-server-for-snipsnap\/","title":{"rendered":"Apache as a Proxy Server for Snipsnap"},"content":{"rendered":"<p>This article describes my efforts to implement the configuration described at <a href=\"http:\/\/www.snipsnap.org\">http:\/\/www.snipsnap.org<\/a> in the <a href=\"http:\/\/www.snipsnap.org\/space\/Apache+as+Proxy\">Apache as a Proxy<\/a>.<!--more--><\/p>\n<h3>Using the Java Server<\/h3>\n<p>Using Version 1.0b3 seems to work as documented on http:\/\/www.snipsnap.org, the problems documented below are either <b>tomcat&#8217;s<\/b> or belong to the <b>.war<\/b> implementation.<\/p>\n<h3>Using Tomcat<\/h3>\n<p>I have done this using<\/p>\n<ul>\n<li>A Cobalt Qube running Linux 2.2 (Yeah, I know but its what I have got!).<\/li>\n<li>Apache V1.3.29<\/li>\n<li>Snipsnap Version 1.0b3 Uttoxeter .war<\/li>\n<li>Tomcat Version 4.1<\/li>\n<\/ul>\n<p>because this is an appliance, I can&#8217;t turn Apache off, nor is it wise to upgrade it. So I implemented SnipSnap as .war on port 8080 and am now seeking to hide this from the world using the Apache proxy capability. This is to create a decent single naming convention accross my web space.I had some problems, but basically, the following lines worked for me<\/p>\n<h3>httpd.conf<\/h3>\n<pre>ProxyRequest off\r\nProxyPass        \/snipsnap     <a href=\"https:\/\/davelevy.info\/wiki\/snipsnap\/\">http:\/\/davelevy.info\/snipsnap<\/a>\r\nProxyPassReverse \/snipsnap     <a href=\"https:\/\/davelevy.info\/wiki\/snipsnap\/\">http:\/\/davelevy.info\/snipsnap<\/a><\/pre>\n<h3>The SnipSnap configuration<\/h3>\n<p>I set conf using the GUI provided<\/p>\n<pre>app.real.port=8080\r\napp.real.path=\/snipsnap\r\napp.real.host=davelevy.info<\/pre>\n<p>It seems to be working quite nicely, but many of the URLs held in snipsnap are now port aware, so I may have some legacy problems. I recommend anyone following me try and fix this before they insert any content.<\/p>\n<p style=\"text-align: center;\">ooOOOoo<\/p>\n<p>This was copied across from my snipsnap on <em>7th June 2013<\/em>. The bliki had been rebuilt several times but this page was not updated. I had got to the point where I installed it with the Java Server, and then used apache as a proxy to hide the port.<\/p>\n<p>Further history and practice is documented at my user record on <a title=\"me at snipsnap, includes a list of my contributions\" href=\"http:\/\/www.snipsnap.org\/comments\/DaveLevy\">http:\/\/snipsnap.org.<\/a><\/p>\n<p>The notes above say that I couldn&#8217;t turn the webserver off, that wasn&#8217;t true, it was possible to do so using the CLI, once one had an ssh connection.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article describes my efforts to implement the configuration described at http:\/\/www.snipsnap.org in the Apache as a Proxy.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","_share_on_mastodon":"0"},"categories":[27,3],"tags":[77,167,29,920,911],"class_list":["post-570","post","type-post","status-publish","format-standard","hentry","category-software","category-technology","tag-apache","tag-proxy-server","tag-snipsnap","tag-software","tag-technology"],"share_on_mastodon":{"url":"","error":""},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/570","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/comments?post=570"}],"version-history":[{"count":8,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/570\/revisions"}],"predecessor-version":[{"id":573,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/570\/revisions\/573"}],"wp:attachment":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/media?parent=570"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/categories?post=570"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/tags?post=570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}