<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>BreiteSeites Blog &#187; permalinks</title>
	<atom:link href="http://breiteseite.net/blog/tag/permalinks/feed/" rel="self" type="application/rss+xml" />
	<link>http://breiteseite.net/blog</link>
	<description>BreiteSeite. Zwischen Himmel &#38; Hölle.</description>
	<lastBuildDate>Fri, 18 Sep 2009 12:58:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>WordPress Permalinks mit Lighttpd 1.4</title>
		<link>http://breiteseite.net/blog/computer/wordpress-permalinks-mit-lighttpd-14/</link>
		<comments>http://breiteseite.net/blog/computer/wordpress-permalinks-mit-lighttpd-14/#comments</comments>
		<pubDate>Mon, 08 Jun 2009 17:53:58 +0000</pubDate>
		<dc:creator>BreiteSeite</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mod_magnet]]></category>
		<category><![CDATA[permalinks]]></category>

		<guid isPermaLink="false">http://breiteseite.net/blog/?p=140</guid>
		<description><![CDATA[Hallo, wer die recht nette Permalinks-Funktion von WordPress nutzen möchte, allerdings anstelle eines Apache- einen Lighttpd Web-Server installiert hat, kann sich des mod_magnet Moduls von Lighttpd bedienen. Zuerstmal muss man unter Debian (etch) das Paket lighttpd-mod-magnet installieren mit: aptitude install lighttpd-mod-magnet Danach die Konfigurationsdatei von Lighttpd öffnen und den Hostabschnitt wie folgt anpassen: $HTTP&#91;&#34;host&#34;&#93; == [...]]]></description>
			<content:encoded><![CDATA[<p>Hallo,</p>
<p>wer die recht nette Permalinks-Funktion von WordPress nutzen möchte, allerdings anstelle eines Apache- einen Lighttpd Web-Server installiert hat, kann sich des mod_magnet Moduls von Lighttpd bedienen.<span id="more-140"></span></p>
<p>Zuerstmal muss man unter Debian (etch) das Paket lighttpd-mod-magnet installieren mit:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> lighttpd-mod-magnet</pre></div></div>

<p>Danach die Konfigurationsdatei von Lighttpd öffnen und den Hostabschnitt wie folgt anpassen:</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #0000ff;">$HTTP</span><span style="color: #009900;">&#91;</span><span style="color: #ff0000;">&quot;host&quot;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #ff0000;">&quot;your.domain-here.com&quot;</span> <span style="color: #009900;">&#123;</span>
  server<span style="color: #339933;">.</span>document<span style="color: #339933;">-</span>root <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;/path/to/your/htdocs&quot;</span>
  magnet<span style="color: #339933;">.</span>attract<span style="color: #339933;">-</span>physical<span style="color: #339933;">-</span>path<span style="color: #339933;">-</span>to <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span> server<span style="color: #339933;">.</span>document<span style="color: #339933;">-</span>root <span style="color: #339933;">+</span> <span style="color: #ff0000;">&quot;/rewrite.lua&quot;</span> <span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p><strong>Hinweis:</strong> Die rewrite.lua sollte im Verzeichnis eures Blogs sein. Also die Zeile könnte auch wie folgt aussehen:</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;">  magnet<span style="color: #339933;">.</span>attract<span style="color: #339933;">-</span>physical<span style="color: #339933;">-</span>path<span style="color: #339933;">-</span>to <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span> server<span style="color: #339933;">.</span>document<span style="color: #339933;">-</span>root <span style="color: #339933;">+</span> <span style="color: #ff0000;">&quot;/my/blog/rewrite.lua&quot;</span> <span style="color: #009900;">&#41;</span></pre></div></div>

<p><strong>Achtung:</strong> Damit mod_magnet funktioniert, muss dieses Modul in der Konfiguration ebenfalls noch aktiviert werden (server.modules).</p>
<p>Jetzt müsst ihr die rewrite.lua im angegeben Verzeichnis noch erstellen und mit folgendem Inhalt füllen:</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;">attr <span style="color: #339933;">=</span> lighty<span style="color: #339933;">.</span><span style="color: #000066;">stat</span><span style="color: #009900;">&#40;</span>lighty<span style="color: #339933;">.</span>env<span style="color: #009900;">&#91;</span><span style="color: #ff0000;">&quot;physical.path&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #b1b100;">not</span> attr<span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">then</span>
  lighty<span style="color: #339933;">.</span>env<span style="color: #009900;">&#91;</span><span style="color: #ff0000;">&quot;uri.path&quot;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;/index.php&quot;</span>
  lighty<span style="color: #339933;">.</span>env<span style="color: #009900;">&#91;</span><span style="color: #ff0000;">&quot;physical.rel-path&quot;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> lighty<span style="color: #339933;">.</span>env<span style="color: #009900;">&#91;</span><span style="color: #ff0000;">&quot;uri.path&quot;</span><span style="color: #009900;">&#93;</span>
  lighty<span style="color: #339933;">.</span>env<span style="color: #009900;">&#91;</span><span style="color: #ff0000;">&quot;physical.path&quot;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> lighty<span style="color: #339933;">.</span>env<span style="color: #009900;">&#91;</span><span style="color: #ff0000;">&quot;physical.doc-root&quot;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">..</span> lighty<span style="color: #339933;">.</span>env<span style="color: #009900;">&#91;</span><span style="color: #ff0000;">&quot;physical.rel-path&quot;</span><span style="color: #009900;">&#93;</span>
end</pre></div></div>

<p>Gegebenfalles ist auch hier wieder das Blogverzeichnis anzupassen, also konkret folgende Zeile:</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;">  lighty<span style="color: #339933;">.</span>env<span style="color: #009900;">&#91;</span><span style="color: #ff0000;">&quot;uri.path&quot;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;/my/blog/index.php&quot;</span></pre></div></div>

<p>Danach noch Lighttpd neustarten:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>lighttpd restart</pre></div></div>

<p>Und die Einstellungen im WordPress Admin Interface unter Einstellungen -&gt; Permalinks nach belieben einstellen. Wer Cache-Plugins nutzt: Nicht vergessen den Cache danach zu leeren, damit die Änderungen sichtbar werden.</p>
<p>P.S.: Hab ich natürlich eben direkt für meinen Blog auch integriert.</p>
<p>Quelle: <a href="http://sudhaker.com/web-development/wordpress/wordpress-permalinks-lighttpd.html">sudhacker.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://breiteseite.net/blog/computer/wordpress-permalinks-mit-lighttpd-14/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
