Serendipity-Buch

Handbuch für Serendipity bestellen

Das offizielle, umfassende Serendipity-Handbuch für Einsteiger und Profis ist nun im Handel und kann online bei Amazon oder OpenSourcePress, oder auch bei jedem Buchhändler, bestellt werden!

Forum-Information

Before posting about errors, make sure that the answer cannot already be found in our FAQ or by searching this forum!
Posting is restricted to registered users (registering is free and simple!) due to recent spam attacks. When having trouble with this board, contact garvin(-at)s9y(-dot)org.

Board index Installation Installation on lighttpd with rewrite support

Having trouble installing serendipity?
xNiclas Kühne
 

Postby xNiclas Kühne » Sat Dec 10, 2005 3:33 am

Following is a sample configuration for s9y on the lighttpd webserver (http://www.lighttpd.net):

Code: Select all
$HTTP["host"] == "www.s9y-site.com" {
  url.access-deny = ( ".tpl", ".inc.php", ".sql", ".db" )
  url.rewrite-once = ( "^/archives([/A-Za-z0-9]+)\.html"   => "/index.php?url=/archives/$1.html",
                       "^/([0-9]+)[_\-][0-9a-z_\-]*\.html" => "/index.php?url=$1-article.html",
                       "^/feeds/(.*)"                      => "/index.php?url=/feeds/$1",
                       "^/unsubscribe/(.*)/([0-9]+)"       => "/index.php?url=/unsubscribe/$1/$2",
                       "^/approve/(.*)/(.*)/([0-9]+)"      => "/index.php?url=approve/$1/$2/$3",
                       "^/delete/(.*)/(.*)/([0-9]+)"       => "/index.php?url=delete/$1/$2/$3",
                       "^/(admin|entries)(/.+)?"           => "/index.php?url=admin/",
                       "^/archive$"                        => "/index.php?url=/archive",
                       "^/categories/([0-9]+)"             => "/index.php?url=/categories/$1",
                       "^/plugin/(.*)"                     => "/index.php?url=plugin/$1",
                       "^/search/(.*)"                     => "/index.php?url=/search/$1",
                       "^/authors/([0-9]+)"                => "/index.php?url=/authors/$1",
                       "^/index\.html?"            => "/index.php?url=index.html",
                       "^/htmlarea/(.*)"                   => "/htmlarea/$1",
                       "/(.*\.html?)"                      => "/index.php?url=/$1",
                       "^/(serendipity\.css|serendipity_admin\.css)"       => "/index.php?url=/$1",
                       "^/(index|atom|rss|b2rss|b2rdf).(rss|rdf|rss2|xml)$" => "/rss.php?file=$1&ext=$2",
                     )
}


Don't forget to set the document root if you are not using simple virtual hosts and enable the rewrite and access module!

Niclas Kühne

User avatar
garvinhicking
Core Developer
 
Posts: 26675
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany

Postby garvinhicking » Sat Dec 10, 2005 8:57 pm

Thanks a lot for your contribution! I've also added it to our Technical Docs on www.s9y.org (http://www.s9y.org/119.html)!

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

tklee
 

Postby tklee » Fri Jan 20, 2006 5:37 am

This line: [code]"^/index\.(html?|php.+)" => "/index.php?url=index.html", [/code]
should be taken out since quicksearch plugin would use

[code]index.php?serendipity%5Baction%5D=search&serendipity%5BsearchTerm%5D=mozart[/code]

to pass parameters into index.php.[/code]

User avatar
garvinhicking
Core Developer
 
Posts: 26675
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany

Postby garvinhicking » Fri Jan 20, 2006 12:35 pm

tklee, thanks! You are right, I adjusted the example!

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

jkv
Regular
 
Posts: 6
Joined: Tue Nov 14, 2006 7:39 pm

Postby jkv » Tue Nov 14, 2006 8:54 pm

Besides the obvious benefit's of url.access-deny, what do the rewrite rules help?

User avatar
garvinhicking
Core Developer
 
Posts: 26675
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany

Postby garvinhicking » Tue Nov 14, 2006 9:31 pm

Hi!

The rewrite rules help to make the URLs used by s9y look nicer. Some search engines and users prefer "speaking URL"s. :)

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

jkv
Regular
 
Posts: 6
Joined: Tue Nov 14, 2006 7:39 pm

Postby jkv » Tue Nov 14, 2006 9:40 pm

Oh, i thought it was something hanky panky ;)
I'll try out the rules then.

Arnold Nijboer
Regular
 
Posts: 42
Joined: Mon Oct 23, 2006 7:48 pm

Postby Arnold Nijboer » Sat Nov 25, 2006 2:25 pm

Looks like i can use it, but can someone tel in what file i need to write it? does it go in an .htaccess file?

Greatings
Arnold Nijboer



Return to Installation

Who is online

Users browsing this forum: No registered users and 1 guest