Tag: code

User VHosting

Posted by on August 30, 2006 | No comments

So, previously, I detailed how to do web virtual hosting to directories on the file system. This is all well and good, but I want to have users pidgeon holed into their own directories, plus I want users own websites to be stored under their own directories in a similar format to that used in the previous article (eg. /home/user/web/example.org/subdomain)

The problem lies with mapping domain names (example.org) onto user accounts (Alice? Bob?). This is where Apache and mod_rewrite come to the rescue again. On Wintermute I’ve installed Apache 2, but this recipe will work just as well with Apache 1.3. » Read the full post

If you find this article useful, buy me a beer!

Tags: , , , ,

Greasemonkey

Posted by on July 19, 2006 | No comments

Quick greasemonkey script to change links to community.livejournal.com/commname to commname.livejournal.com. Based off the “Always link to full LiveJournal userinfo” script.

Probably doesn’t take into account a bunch of stuff…

// ==UserScript==
// @name          Change community.livejournal.com/commname ... to commname.livejournal.com
// @namespace    http://livejournal.arricc.net/
// @description  Modify links to LJ communities
// @include      http://*.livejournal.com/*
// ==/UserScript==
(function(){
  var commRegEx = /^(http:\/\/community\.livejournal\.com)?\/([^/]+)(\/)?(.*)/i;
  var l = document.getElementsByTagName("a");
  for (var cand = null, i = 0; (cand = l[i]); i++) {
    uim = commRegEx.exec(cand.getAttribute('href'));
    if (uim != null) {
      cand.setAttribute('href','http://' + uim[2] + '.livejournal.com/' + uim[4]);
    }
  }
})();

Download: changecommunitylivejourn.user.js

If you find this article useful, buy me a beer!

Tags: , , ,

VWebhosting

Posted by on July 7, 2006 | 3 comments
ApacheDebianHostingTechWist

So, to reiterate – the main server (Wist) will hold all my own stuff, then I’ll be creating a user Virtual Server (Wintermute) on top of that for users to play with and/or break. All the user stuff is backended in a Xoops database using Xoops groups.

Wist is installed with Debian Sarge using a custom kernel including the vserver patches from Debian. This sort of thing is detailed elsewhere so I won’t go over it again here.

The core server software (all from the Debian archive) will include: Apache 1.3 with PHP4, Apache-SSL, Bind, MySQL 4.1, Exim4, ClamAV and Dovecot (I’ll be detailing the email setup seperately) » Read the full post

If you find this article useful, buy me a beer!

Tags: , , , ,

Powered by Wordpress and Stripes Theme Entries (RSS) | Comments (RSS)