curseknight / phurl

Automatically exported from code.google.com/p/phurl
0 stars 0 forks source link

error 404 server lighttpd [solved] #127

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
web server: lighttpd
SO:         Lubuntu 11.04

edit 

/etc/lighttpd/lighttpd.conf

edit entry

$HTTP["host"] == "cut07.tk" {
    server.document-root = "/media/Disco160/www/cut07.tk"     
    server.dir-listing = "disable"
    url.rewrite-once = (
     "^/([a-zA-Z0-9_-].*)" => "/redirect.php?alias=$1" )
} 

source: http://foswiki.org/Support/ShorterUrlCookbook

Original issue reported on code.google.com by mama21ma...@gmail.com on 26 Aug 2011 at 12:26

GoogleCodeExporter commented 9 years ago
update:

$HTTP["host"] == "cut07.tk" {
    server.document-root = "/media/Disco160/www/cut07.tk"     
    server.dir-listing = "disable"
    url.rewrite-once = (
    "^/([a-zA-Z0-9_-]+)$" => "/redirect.php?alias=$1" )

} 

Original comment by mama21ma...@gmail.com on 26 Aug 2011 at 1:27

GoogleCodeExporter commented 9 years ago
Afraid I don't use lighttpd myself, but version 3 will approach redirections in 
a different way, so this shouldn't be an issue in future.

Original comment by he...@phurlproject.org on 15 Dec 2011 at 12:58

GoogleCodeExporter commented 9 years ago

Original comment by he...@phurlproject.org on 29 May 2012 at 11:30