Configuring "snipsnap" with Apache

One of the key things that RSS enables is the propagation of dynamic content. I've finally got my web site's static content up and in a fit state, so I need to look at how to dynamise it. As discussed, I have decided to look at snipsnap, but I want to use the my web server as a proxy in order to have some say on the webspace's lexical structure. I have previously installed snipsnap as a java instance within its own JVM i.e. I have not installedit as .war. The snipsnap version is 1.02b Uttoxeter. The apache version is 2.0.52

So firstly, I check out snipsnap's documention which is here.... I'd like to claim that I immediately spotted the comments hyperlink, but I didn't. [Comments]. The first problem is that I am using a newer version of Apache. This required a different syntax for AddModule. This is what I used.

<IfModule mod_proxy.c>
ProxyRequests Off
ProxyPass                /snipsnap/    http://${myproxyhostname}:8668/
ProxyPassReverse    /snipsnap/    http://${myproxyhostname}:8668/

This example does not illustrate the endif and the string {myproxyhostname} was a text string not a variable. I have changed it for anonymity reasons..

I then logged into my snipsnap instance as the administrator, entered the setup screen and set the context to the same as the second field in my proxypass lines. i.e. /snipsnap. I left the other settings at the default. After testing I omitted the trailing slash (/).

This gives me the snipsnap home page using the URL http://${myproxyhostname}/snipsnap . I can now happily incorporate it into an HTML home page with my static content.

I also need to learn how to add this as a comment to the snipsnap wiki, and Mike Ramchand advises me I should go down the .war route.

tags:

Comments:

Post a Comment:
Comments are closed for this entry.
About

DaveLevy

Search

Archives
« April 2014
MonTueWedThuFriSatSun
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Today