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.
|
Having trouble installing serendipity?
-
xNiclas Kühne
-
by 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
-

garvinhicking
- Core Developer
-
- Posts: 26675
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
-
Re: Installation on lighttpd with rewrite support
by 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
-
tklee
-
by 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]
-

garvinhicking
- Core Developer
-
- Posts: 26675
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
-
by garvinhicking » Fri Jan 20, 2006 12:35 pm
tklee, thanks! You are right, I adjusted the example!
Regards,
Garvin
-
jkv
- Regular
-
- Posts: 6
- Joined: Tue Nov 14, 2006 7:39 pm
-
by jkv » Tue Nov 14, 2006 8:54 pm
Besides the obvious benefit's of url.access-deny, what do the rewrite rules help?
-

garvinhicking
- Core Developer
-
- Posts: 26675
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
-
by 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
-
jkv
- Regular
-
- Posts: 6
- Joined: Tue Nov 14, 2006 7:39 pm
-
by 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
-
by 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
|