<rdf:RDF
    xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
    xmlns:s='http://snipsnap.org/rdf/snip-schema#'
    xml:base='http://startofentry.blogdns.org/rdf'>
    <s:Snip rdf:about='http://startofentry.blogdns.org/rdf#Apache+as+Proxy'
         s:cUser='case'
         s:oUser='case'
         s:mUser='case'>
        <s:name>Apache as Proxy</s:name>
        <s:content>1 using Apache as proxy to snipsnap&#xD;&#xA;&#xD;&#xA;The following code block is from a test snipsnap installation showing how to configure two snipsites using Apaches as proxy and also it resolves the handling of the favicon using subsnips.&#xD;&#xA;&#xD;&#xA;{code:none}&#xD;&#xA;# Virtual Host config for snipsnap relies on mod_proxy and mod_proxy_http&#xD;&#xA;NameVirtualHost 192.168.2.4:8080&#xD;&#xA;&#xD;&#xA;&lt;VirtualHost  192.168.2.4:8080                        &gt;&#xD;&#xA;  ServerName snip2&#xD;&#xA;  CustomLog var/logs/access-subsite.log common&#xD;&#xA;  ErrorLog  var/logs/error-subsite.log&#xD;&#xA;  ProxyVia      full&#xD;&#xA;  ProxyRequests off&#xD;&#xA;  ProxyPass             /favicon.ico \http://localhost:80/subsite/theme/images/favicon.ico&#xD;&#xA;  ProxyPass             /       \http://localhost:80/subsite/&#xD;&#xA;  ProxyPassReverse      /       \http://localhost:80/subsite/&#xD;&#xA;&lt;/VirtualHost&gt;&#xD;&#xA;&#xD;&#xA;&lt;VirtualHost 192.168.2.4:8080                        &gt;&#xD;&#xA;  ServerName snip1&#xD;&#xA;  ProxyVia      full&#xD;&#xA;  ProxyRequests off&#xD;&#xA;  ProxyPass             /       \http://localhost:80/&#xD;&#xA;  ProxyPassReverse      /       \http://localhost:80/&#xD;&#xA;&lt;/VirtualHost&gt;&#xD;&#xA;&#xD;&#xA;&lt;VirtualHost *:8080                        &gt;&#xD;&#xA;  ServerName default&#xD;&#xA;  ProxyVia      full&#xD;&#xA;  ProxyRequests off&#xD;&#xA;  ProxyPass             /       \http://localhost:80/&#xD;&#xA;  ProxyPassReverse      /       \http://localhost:80/&#xD;&#xA;&lt;/VirtualHost&gt;&#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;1.1 Logs and Logrotation&#xD;&#xA;- see /etc/logrotate.d for configuration files&#xD;&#xA;- see http://httpd.apache.org/docs/2.0/logs.html#virtualhost&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;1 copied from snipsnap.org&#xD;&#xA;&#xD;&#xA;Since version-0.5.2a [SnipSnap] contains support for multiple SnipSpaces within a single web application. To install a new instance follow these instructions:&#xD;&#xA;&#xD;&#xA;1.1 Prerequisites&#xD;&#xA;1. SnipSnap installed (follow default install/setup)&#xD;&#xA;1. Invent a ~~prefix~~ for new instance. The prefix is just like a context path in a web application, but handled by [SnipSnap] itself.&#xD;&#xA;1. Write down the installation key told to you by SnipSnap: &#xD;&#xA;{code}&#xD;&#xA;SnipSnap 0.5.2a&#xD;&#xA;Copyright (c) 2000-2004 Fraunhofer Gesellschaft&#xD;&#xA;Fraunhofer Institute for Computer Architecture and Software Technology&#xD;&#xA;All Rights Reserved. See License Agreement for terms and conditions of use.&#xD;&#xA;Responsible Authors: Stephan J. Schmidt, Matthias L. Jugel.&#xD;&#xA;&gt;&gt; Loading: / (SnipSnap, \http://&lt;yourhost&gt;:&lt;yourport&gt;)&#xD;&#xA;__&gt;&gt; Installation key: eeb8b__&#xD;&#xA;&gt;&gt; Loaded 1 instances (0 not configured).&#xD;&#xA;{code} &#xD;&#xA;1.1 Installation of a new Instance&#xD;&#xA;1. Logout from SnipSnap&#xD;&#xA;1. Open the URL ~~\http://&lt;yourhost&gt;:&lt;yourport&gt;/admin/configure?prefix=__/foo__~~&#xD;&#xA;1. Enter the installation key (if you are not asked you have not logged off)&#xD;&#xA;1. Follow the Setup Wizard&#xD;&#xA;&#xD;&#xA;You will be redirected to your instance which is available using the URL ~~\http://&lt;yourhost&gt;:&lt;yourport&gt;/foo~~&#xD;&#xA;&#xD;&#xA;1.1.1 __Important Note for Proxy Users__ &#xD;&#xA;&#xD;&#xA;If you are using the [Apache as proxy] method you may not be able to access the new instances via the proxy set up for the main instance. This means, \http://yourdomain.com/ works fine, but \http://yourdomain/foobar will not work and redirect you to the main instance.&#xD;&#xA;&#xD;&#xA;A workaround is to either setup a new proxy configuration that directly access the new instance:&#xD;&#xA;&#xD;&#xA;{code}&#xD;&#xA;&lt;VirtualHost ...&gt;&#xD;&#xA;  ProxyPass / \http://&lt;server&gt;:&lt;port&gt;/foobar&#xD;&#xA;  ProxyPassReverse / \http://&lt;server&gt;:&lt;port&gt;/foobar&#xD;&#xA;&lt;/VirtualHost&gt;&#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;... or set the context path of that instance to the prefix:&#xD;&#xA;&#xD;&#xA;{code}&#xD;&#xA;app.real.path=/prefix&#xD;&#xA;{code}</s:content>
        <s:mTime>2006-09-30 08:30:36.546</s:mTime>
        <s:cTime>2006-06-20 22:07:38.872</s:cTime>
        <s:comments
             rdf:type='http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag'/>
        <s:snipLinks>
            <rdf:Bag>
                <rdf:li rdf:resource='#snipsnap-index'/>
                <rdf:li rdf:resource='#snipsnap-search'/>
                <rdf:li rdf:resource='#SnipSnap'/>
                <rdf:li rdf:resource='http://startofentry.blogdns.org/rdf#older changes'/>
                <rdf:li rdf:resource='#case.todo'/>
                <rdf:li rdf:resource='#Charley'/>
                <rdf:li rdf:resource='#Buffy'/>
                <rdf:li rdf:resource='http://startofentry.blogdns.org/rdf#5ud0ku'/>
            </rdf:Bag>
        </s:snipLinks>
        <s:attachments
             rdf:type='http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag'/>
    </s:Snip>
</rdf:RDF>
