November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
| Aromatherapy [44] | [RSS] |
| Bullshit [50] | [RSS] |
| Day to Day [167] | [RSS] |
| Geocaches [4] | [RSS] |
| Projects [10] | [RSS] |
| Software [118] | [RSS] |
| Squirrel Thursday [29] | [RSS] |
| Technology [94] | [RSS] |
BLOGS & Friends Pages
Work From Home Smart
Honest Tunes Radio
Mad Geek!!!
Damn Interesting
hecker’s blizzog
EINSTEIN@HOME FreeBSD
Team FreeBSD HOME
Team FreeBSD Stat Page
Join Team FreeBSD
Interesting Web Sites
IPac - Culture & Technology
Cache-A-Maniacs
One Dollar BLOGS
Nature's Gift
Clientcopia
Links Visited Daily
Worse Than Failure
Forever Geek
Neatorama
Engadget
Boing Boing
Gizmodo
Hack a Day
My Content and Media
Myside's Geocaching Stats
My Shared RSS Snippets
A Picture of Me
My last.fm Home
Geeky, Funny, Strange
Wish List
Casio Wave Ceptor Watch
Nokia N800 Internet Tablet
If I am on-line and you want to chat in real time, or if I am off-line and you want to leave a message with my local IM program, allow pop-ups, then :::
The default installation of my dedicated server OS was not serving my specific needs and was rather bloated in the sense of default available services and mechanisms used to configure them. I have slowly been tightening things down a bit, and today I completed the transition from Apache to lighttpd and fastcgi with PHP as my web services provider.
With this move, I can focus more on necessity rather than shuffle through the extremities of a more complicated system, thus personalizing the web service.
For virtual hosts, lighttpd provides two modules to choose from: mod_evhost and mod_simple_vhost. I chose mod_evhost as it allowed me to use regular expressions when defining virtual host paths. So in my case I defined the paths with $server_root/domainname.com/subdomain with the root domain and subdomain web files located in public_html.
evhost.path-pattern = "/server_root/%0/%3/public_html/"
My next step was to insure LifeType and Gallery 2 would run properly. To do this, I would need the mod_rewrite and mod_redirect modules.
With my LifeType installation I needed a way to redirect my custome URL's which was accomplished with Apache's redirection to blog.php. I also needed bind http error handling to error.php. These are the two decelerations I used to accomplish this:
url.rewrite-once = ("^/blog/.*" => "/blog.php")
server.error-handler-404 = "/error.php"
Also make sure to define your document root that is relative to your LifeType installation.
server.document-root = "/server_root/public_html/"
I then copied my LifeType installation over to my lighttpd document directory. That was all there was to it.
For Gallery 2 I needed to edit config.php and change the data.gallery.base variable to the appropriate new root of the copied installation.
I also changed the mod_rewrite SQL variable to 0 for inactive. I am not sure if this was necessary to keep my search engine friendly URLS, but I did not test if it was. In any case, I used the following lighttpd rewrite declerations to keep these good looking resource locations:
url.rewrite = (
"^/pics/v/(\?.+|\ .)?$" => "/pics/main.php?g2_view=core.ShowItem",
"^/pics/admin/.(.*)" => "/pics/main.php?g2_view=core.SiteAdmin&$1",
"^/pics/d/([0-9]+)-([0-9]+)/([^\/]+)(\?|\ )?(.*)$" => "/pics/main.php?g2_view=core.DownloadItem&g2_itemId=$1&g2_ser$
"^/pics/v/([^?]+)(\?|\ )?(.*)$" => "/pics/main.php?g2_view=core.ShowItem&g2_path=$1&$3",
"^/pics/c/add/(.*).html" => "/pics/main.php?g2_view=comment.AddComment&g2_itemId=$1",
"^/pics/c/view/(.*).html" => "/pics/main.php?g2_view=comment.ShowAllComments&g2_itemId=$1"
)
Make sure to replace /pics/ with the directory of your copied Gallery 2 installation.
This was the basics of the transfer. Feel free to leave a comment if you have any questions or want to discuss the procedure I used.
[Software]
Main Entry: spew
Function: verb
Etymology: Middle English, from Old English spIwan; akin to Old High German spIwan to spit, Latin spuere, Greek ptyein
intransitive verb
1 : VOMIT
2 : to come forth in a flood or gush
3 : to ooze out as if under pressure : EXUDE
transitive verb
1 : VOMIT
2 : to send or cast forth with vigor or violence or in great quantity -- often used with out
- spew-er noun
-- Merriam-Webster