random technical thoughts from the Nominet technical team

Installing Blojsom blogger in the root of Web Server

1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 4.33 out of 5)
Loading ... Loading ...
Posted by dmitri on May 18th, 2005

This is a short description of how to install Blojsom blogger so that URL’s are
stripped of upper level subdirectories to look like
http://hostname/userid/ instead of http://hostname/blojsom/blog/userid/
or http://hostname/blog/userid/

It is presumed that you’re using Apache
Web server
, Tomcat 5
and mod_jk
connector. You’ve also followed Blojsom installation instructions on http://wiki.blojsom.com/wiki/display/blojsom/Installation
and made it work as http://hostname/blojsom/blog/userid with Apache Web
Server as a frontend and mod_jk connector.

First, remove (or move elsewhere) the default ROOT application:

mv $TOMCAT_HOME/webapps/ROOT ~/

and copy Blojsom application to the ROOT:

cp -R
$TOMCAT_HOME/webapps/blojsom
$TOMCAT_HOME/webapps/ROOT

edit $TOMCAT_HOME/webapps/ROOT/WEB-INF/web.xml and replace

<url-pattern>/blog/*</url-pattern>

with

<url-pattern>/*</url-pattern>

edit $TOMCAT_HOME/webapps/ROOT/WEB-INF/blojsom.properties and replace

blojsom-installation-directory=$TOMCAT_HOME/webapps/blojsom/

with

blojsom-installation-directory=$TOMCAT_HOME/webapps/ROOT/

edit $TOMCAT_HOME/webapps/ROOT/WEB-INF/userid/blog.properties and
replace

blog-base-url=http://hostname/blojsom
blog-admin-url=http://hostname/blojsom/blog/userid/
blog-url=http://hostname/blojsom/blog/userid/

with

blog-base-url=http://hostname/
blog-admin-url=http://hostname/userid/
blog-url=http://hostname/userid/

Make the following changes in Apache Web server configuration:

SetEnvIf Request_URI
"/resources/*" no-jk
SetEnvIf Request_URI "/admin-basic.css" no-jk
SetEnvIf Request_URI "/admin-tabs.css" no-jk
SetEnvIf Request_URI "/atom.css" no-jk
SetEnvIf Request_URI "/blojsom.css" no-jk
SetEnvIf Request_URI "/favicon.ico" no-jk
SetEnvIf Request_URI "/index.html" no-jk
SetEnvIf Request_URI "/powered-by-blojsom.gif" no-jk
SetEnvIf Request_URI "/quicktags.js" no-jk
SetEnvIf Request_URI "/rdf.gif" no-jk
SetEnvIf Request_URI "/rss.gif" no-jk
SetEnvIf Request_URI "/search.png" no-jk
SetEnvIf Request_URI "/trackback.gif" no-jk
SetEnvIf Request_URI "/xml.gif" no-jk
JkMount / worker1
JkMount /* worker1
<Directory $TOMCAT_HOME/webapps/ROOT>
Options None
+SymLinksIfOwnerMatch
AllowOverride None
order allow,deny
allow from all
</Directory>
DocumentRoot
$TOMCAT_HOME/webapps/ROOT

Now restart Apache web server and Tomcat server. Everything should now
work as expected.

One Response

  1. Brian Allen Says:

    What is unique about Tomcat 5 associated with this setup?

    I am using version 4.

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.

Recent Posts

Highest Rated

Categories

Archives

Meta: