skip to main | skip to sidebar

web developer notes

this is the place i use for my notes. My interests are Linux system administration, php programming, postgresql server, emacs and lighttpd.

Thursday, February 8, 2007

lighttpd canonical hosts (non-www to www redirect)

This will redirect http://domin.com to http://www.domain.com/ with 301 code

$HTTP["host"] == "domain.com" {
url.redirect = ( "^/(.*)" => "http://www.domain.com/$1" )
}
Posted by Sergey at 3:08 PM
Labels: lighttpd, system

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Labels

  • system
  • linux
  • postgresql
  • php
  • debian
  • sql
  • accents
  • arabs
  • command line shell scriptiong
  • emacs
  • errors
  • ftp
  • fun
  • kubuntu
  • lighttpd
  • log processing
  • monitoring
  • mysql
  • network
  • pg_autovacuum
  • pure-ftp
  • russian
  • scv
  • server
  • ssh
  • tunnelling
  • video

Blog Archive

  • ►  2008 (3)
    • ►  April (1)
    • ►  February (2)
  • ▼  2007 (18)
    • ►  September (2)
    • ►  July (1)
    • ►  May (2)
    • ►  March (3)
    • ▼  February (5)
      • remove accents from strings using postgresql
      • lighttpd canonical hosts (non-www to www redirect)
      • pure ftp with postgres
      • install emacs on debian
      • W: There are no public key available for the follo...
    • ►  January (5)