<?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>Linux, Technik, Mac,Fotografie &#187; Lighttpd</title>
	<atom:link href="http://blog.timtropberger.de/tag/lighttpd/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.timtropberger.de</link>
	<description>Begeisterungsfähig. Musikaffin. Fotograf. Freiheitsliebend. Groß. Chaot. Technikverliebt. Autofan. Macuser. Linuxbegeistert.</description>
	<lastBuildDate>Thu, 05 Jan 2012 17:46:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Kurz notiert: Fehlercode: ssl_error_rx_record_too_long</title>
		<link>http://blog.timtropberger.de/2010/11/kurz-notiert-fehlercode-ssl_error_rx_record_too_long/</link>
		<comments>http://blog.timtropberger.de/2010/11/kurz-notiert-fehlercode-ssl_error_rx_record_too_long/#comments</comments>
		<pubDate>Tue, 30 Nov 2010 06:42:50 +0000</pubDate>
		<dc:creator>Tim Tropberger</dc:creator>
				<category><![CDATA[Technik]]></category>
		<category><![CDATA[Tipps]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Lighttpd]]></category>
		<category><![CDATA[lighty]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[Webserver]]></category>

		<guid isPermaLink="false">http://blog.timtropberger.de/?p=543</guid>
		<description><![CDATA[Die Fehlermeldung &#8220;Fehlercode: ssl_error_rx_record_too_long&#8220;  bekommt man bei Firefox zu gesicht, wenn man über https eine Seite erreichen will, aber der Webserver Lighttpd mod ssl noch nicht aktiviert hat. Dies macht man mit lighty-enable-mod ssl Natürlich muss man dazu auch ein passendes Zertifikat erstellt haben.]]></description>
			<content:encoded><![CDATA[<p>Die Fehlermeldung &#8220;<strong>Fehlercode: ssl_error_rx_record_too_long</strong>&#8220;  bekommt man bei Firefox zu gesicht, wenn man über https eine Seite erreichen will, aber der Webserver <a href="http://blog.timtropberger.de/tag/lighttpd/">Lighttpd</a> mod ssl noch nicht aktiviert hat. Dies macht man mit</p>
<blockquote><p><em>lighty-enable-mod ssl</em></p></blockquote>
<p>Natürlich muss man dazu auch ein passendes Zertifikat erstellt haben.</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Kurz+notiert%3A+Fehlercode%3A+ssl_error_rx_record_too_long+http%3A%2F%2Ftinyurl.com%2F2ey2s3y" title=" "><img class="nothumb" src="http://blog.timtropberger.de/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/intent/tweet?text=Kurz+notiert%3A+Fehlercode%3A+ssl_error_rx_record_too_long+http%3A%2F%2Ftinyurl.com%2F2ey2s3y" title=" "> </a></p></div>]]></content:encoded>
			<wfw:commentRss>http://blog.timtropberger.de/2010/11/kurz-notiert-fehlercode-ssl_error_rx_record_too_long/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>.htaccess Alternative mit Lighttpd</title>
		<link>http://blog.timtropberger.de/2010/11/htaccess-alternative-mit-lighttpd/</link>
		<comments>http://blog.timtropberger.de/2010/11/htaccess-alternative-mit-lighttpd/#comments</comments>
		<pubDate>Mon, 29 Nov 2010 13:33:12 +0000</pubDate>
		<dc:creator>Tim Tropberger</dc:creator>
				<category><![CDATA[IT Welt]]></category>
		<category><![CDATA[Technik]]></category>
		<category><![CDATA[Tipps]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[Lighttpd]]></category>
		<category><![CDATA[lighty]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mod_auth]]></category>
		<category><![CDATA[Webserver]]></category>
		<category><![CDATA[Zugriff]]></category>

		<guid isPermaLink="false">http://blog.timtropberger.de/?p=539</guid>
		<description><![CDATA[Ich habe grade einige Sachen mit dem schlanken Webserver Lighttpd ausprobiert und war u.A. auf der Suche nach einer Alternative zum .htaccess Zugriff, den man von Apache gewohnt ist. Ich bastelte mir dann eine recht elegante Lösung zusammen. Zuerst wird mittels lighty-enable-mod auth Das mod_auth Modul von Lighttpd aktiviert. Danach fürgen wir in /etc/lighttpd/lighttpd.conf ans [...]]]></description>
			<content:encoded><![CDATA[<p>Ich habe grade einige Sachen mit dem schlanken <a href="http://blog.timtropberger.de/2010/04/wordpress-permalinks-mit-lighttpd/">Webserver Lighttpd</a> ausprobiert und war u.A. auf der Suche nach einer Alternative zum .htaccess Zugriff, den man von Apache gewohnt ist. Ich bastelte mir dann eine recht elegante Lösung zusammen.<br />
Zuerst wird mittels</p>
<blockquote><p><em>lighty-enable-mod auth</em></p></blockquote>
<p><em>Das mod_auth Modul von Lighttpd aktiviert. Danach fürgen wir in /etc/lighttpd/lighttpd.conf ans Ende folgenden Code:</em></p>
<blockquote><p><em>auth.backend = &#8220;htpasswd&#8221;<br />
auth.backend.htpasswd.userfile = &#8220;/etc/lighttpd/htpasswd&#8221;<br />
auth.require = ( &#8220;/Pfad/&#8221; =&gt;<br />
(<br />
&#8220;method&#8221;  =&gt; &#8220;basic&#8221;,<br />
&#8220;realm&#8221;   =&gt; &#8220;Nur mit gültigen Benutzer&#8221;,<br />
&#8220;require&#8221; =&gt; &#8220;user=tim&#8221;<br />
)<br />
)</em></p></blockquote>
<p>/etc/lighttpd/htpasswd bezieht sich auf die htpasswd-Datei, die wir noch nicht erstellt haben. /Pfad/ steht dort als Platzhalter für die relative Angabe des Pfads, der zu schützen ist. Nach &#8220;require&#8221; kann man entweder, wie ich es machte, einen vorhandenen Benutzer stellen oder mit der Option &#8220;valid-user&#8221; irgendeinen, in der htpasswd-Datei vorhandene,  Nutzer vorraussetzen. Danach widmen wir uns der htpasswd-Datei und erstellen diese mit dem Befehl</p>
<blockquote><p><em>htpasswd -c /etc/lighttpd/htpasswd Benutzername</em></p></blockquote>
<p>Das Argument -c steht in diesem Fall für &#8220;create&#8221;. Wenn man im Nachhinein weitere Benutzer hinzufügen will, kann man einfach den Befehl ohne Argument ausführen. Nachdem wir den Webserver neustarten, sollten die Änderungen wirksam geworden sein und das gewünschte Verzeichnis ist geschützt.</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=.htaccess+Alternative+mit+Lighttpd+http%3A%2F%2Ftinyurl.com%2F2bnv6k6" title=" "><img class="nothumb" src="http://blog.timtropberger.de/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/intent/tweet?text=.htaccess+Alternative+mit+Lighttpd+http%3A%2F%2Ftinyurl.com%2F2bnv6k6" title=" "> </a></p></div>]]></content:encoded>
			<wfw:commentRss>http://blog.timtropberger.de/2010/11/htaccess-alternative-mit-lighttpd/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>WordPress Permalinks mit Lighttpd</title>
		<link>http://blog.timtropberger.de/2010/04/wordpress-permalinks-mit-lighttpd/</link>
		<comments>http://blog.timtropberger.de/2010/04/wordpress-permalinks-mit-lighttpd/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 12:03:39 +0000</pubDate>
		<dc:creator>Tim Tropberger</dc:creator>
				<category><![CDATA[Technik]]></category>
		<category><![CDATA[Tipps]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[Content Management System]]></category>
		<category><![CDATA[Lighttpd]]></category>
		<category><![CDATA[Permalinks]]></category>
		<category><![CDATA[Phpmyadmin]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[URLS]]></category>
		<category><![CDATA[VHost]]></category>
		<category><![CDATA[Webserver]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://blog.timtropberger.de/?p=437</guid>
		<description><![CDATA[Langsam schein ich mich noch zu einem richtigen Lighttpd-Fan zu entwickeln. Am Dienstag beschrieb ich ja bereits, wie man mit den VHost Einträgen in der Lighttpd.conf SEO freundliche URLs erstellen kann. Am Mittwoch war ein wenig Debugging dran und ich zeigte, wie man einen PhpMyAdmin Fehler unter Lighty beheben kann. Doch während der erste Part [...]]]></description>
			<content:encoded><![CDATA[<p>Langsam schein ich mich noch zu einem richtigen <a href="http://blog.timtropberger.de/tag/lighttpd/">Lighttpd</a>-Fan zu entwickeln. Am Dienstag beschrieb ich ja bereits, wie man mit den VHost Einträgen in der Lighttpd.conf <a href="http://blog.timtropberger.de/2010/04/seo-freundliche-urls/">SEO freundliche URLs</a> erstellen kann. Am Mittwoch war ein wenig Debugging dran und ich zeigte, wie man einen <a href="http://blog.timtropberger.de/2010/04/phpmyadmin-403-forbidden-fehler/">PhpMyAdmin Fehler</a> unter Lighty beheben kann.</p>
<p>Doch während der erste Part der VHost Einträge nur &#8220;duplicate Content&#8221; also doppelten oder mehrfachen Inhalt vermeidet, hilft es ja nich bei der Linkstruktur. Da ich gerne WordPress sowohl als Conten Management System (CMS), als auch als eigentliche Blogsoftware, einsetze, werde ich heute zeigen, wie man die Permalinks ähnlich schön, wie unter Apache hinbekommt.</p>
<p>Lighttpd hat ja den Nachteil (oder auch Vorteil), dass es keine .htaccess Datein nutzt. Also braucht man für das Rewriting eine Alternative. Die ist auch in den VHost Einträgen in der Lighttpd.conf verankert. Das ganze sieht bei mir folgendermaßen aus:</p>
<blockquote><p>$HTTP["host"] =~ &#8220;^www\.tuxonauten\.de&#8221; {<br />
server.document-root = &#8220;/var/www/tuxonauten/&#8221;<br />
server.error-handler-404 = &#8220;/error_handler.php&#8221;</p>
<p>url.rewrite = (<br />
&#8220;^/(wp-.+).*/?&#8221; =&gt; &#8220;$0&#8243;,<br />
&#8220;^/(sitemap.xml)&#8221; =&gt; &#8220;$0&#8243;,<br />
&#8220;^/(xmlrpc.php)&#8221; =&gt; &#8220;$0&#8243;,<br />
&#8220;^/(.+)/?$&#8221; =&gt; &#8220;/index.php/$1&#8243;<br />
)<br />
}</p>
<p>$HTTP["host"] =~ &#8220;^tuxonauten\.de&#8221; {<br />
url.redirect-code = 301<br />
url.redirect = (<br />
&#8220;^/(.*)$&#8221; =&gt; &#8220;http://www.tuxonauten.de/$1&#8243;,<br />
)}</p>
<p>$HTTP["host"] =~ &#8220;^tuxonaut\.de&#8221; {<br />
url.redirect-code = 301<br />
url.redirect = (<br />
&#8220;^/(.*)$&#8221; =&gt; &#8220;http://www.tuxonauten.de/$1&#8243;,<br />
)}</p>
<p>$HTTP["host"] =~ &#8220;^www\.tuxonaut\.de&#8221; {<br />
url.redirect-code = 301<br />
url.redirect = (<br />
&#8220;^/(.*)$&#8221; =&gt; &#8220;http://www.tuxonauten.de/$1&#8243;,<br />
)}</p></blockquote>
<p>Wirklich relevant ist aber nur folgender Eintrag:</p>
<blockquote><p>url.rewrite = (<br />
&#8220;^/(wp-.+).*/?&#8221; =&gt; &#8220;$0&#8243;,<br />
&#8220;^/(sitemap.xml)&#8221; =&gt; &#8220;$0&#8243;,<br />
&#8220;^/(xmlrpc.php)&#8221; =&gt; &#8220;$0&#8243;,<br />
&#8220;^/(.+)/?$&#8221; =&gt; &#8220;/index.php/$1&#8243;<br />
)</p></blockquote>
<p>Dieser lässt sich natürlich auch auf Unterordner anwenden. Gefunden habe ich das ganze <a href="http://blog.forret.com/2007/03/urlrewrite-for-wordpress-on-lighttpd/">Hier</a>.</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=WordPress+Permalinks+mit+Lighttpd+http%3A%2F%2Ftinyurl.com%2F2g7krqu" title=" "><img class="nothumb" src="http://blog.timtropberger.de/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/intent/tweet?text=WordPress+Permalinks+mit+Lighttpd+http%3A%2F%2Ftinyurl.com%2F2g7krqu" title=" "> </a></p></div>]]></content:encoded>
			<wfw:commentRss>http://blog.timtropberger.de/2010/04/wordpress-permalinks-mit-lighttpd/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Phpmyadmin 403 Forbidden Fehler</title>
		<link>http://blog.timtropberger.de/2010/04/phpmyadmin-403-forbidden-fehler/</link>
		<comments>http://blog.timtropberger.de/2010/04/phpmyadmin-403-forbidden-fehler/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 14:14:48 +0000</pubDate>
		<dc:creator>Tim Tropberger</dc:creator>
				<category><![CDATA[Technik]]></category>
		<category><![CDATA[Tipps]]></category>
		<category><![CDATA[403]]></category>
		<category><![CDATA[FastCGI]]></category>
		<category><![CDATA[Fehler]]></category>
		<category><![CDATA[forbidden]]></category>
		<category><![CDATA[Lighttpd]]></category>
		<category><![CDATA[lighty]]></category>
		<category><![CDATA[Phpmyadmin]]></category>
		<category><![CDATA[Tipp]]></category>
		<category><![CDATA[Webserver]]></category>

		<guid isPermaLink="false">http://blog.timtropberger.de/?p=432</guid>
		<description><![CDATA[Wenn man Lighttpd (lighty) als Webserver nutzt und dann PhpMyAdmin installiert kann es vorkommen, dass, nach Aufruf der PhpMyAdmin URL, der 403-Forbidden-Fehler auftaucht und euch daran hindert auf PhpMyAdmin zuzugreifen. Das ganze kann unter Umständen daran liegen, dass FastCGI in Lighttpd nicht aktiviert ist. Dies kann man dann ganz einfach mit lighty-enable-mod fastcgi beheben.]]></description>
			<content:encoded><![CDATA[<p>Wenn man <a href="http://de.wikipedia.org/wiki/Lighttpd">Lighttpd (lighty)</a> als Webserver nutzt und dann <a href="http://de.wikipedia.org/wiki/PhpMyAdmin">PhpMyAdmin</a> installiert kann es vorkommen, dass, nach Aufruf der <a href="http://de.wikipedia.org/wiki/PhpMyAdmin">PhpMyAdmin</a> URL, der 403-Forbidden-Fehler auftaucht und euch daran hindert auf <a href="http://de.wikipedia.org/wiki/PhpMyAdmin">PhpMyAdmin</a> zuzugreifen. Das ganze kann unter Umständen daran liegen, dass FastCGI in Lighttpd nicht aktiviert ist. Dies kann man dann ganz einfach mit</p>
<blockquote><p>lighty-enable-mod fastcgi</p></blockquote>
<p>beheben.</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Phpmyadmin+403+Forbidden+Fehler+http%3A%2F%2Ftinyurl.com%2Fy76hrjz" title=" "><img class="nothumb" src="http://blog.timtropberger.de/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/intent/tweet?text=Phpmyadmin+403+Forbidden+Fehler+http%3A%2F%2Ftinyurl.com%2Fy76hrjz" title=" "> </a></p></div>]]></content:encoded>
			<wfw:commentRss>http://blog.timtropberger.de/2010/04/phpmyadmin-403-forbidden-fehler/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SEO freundliche URLs</title>
		<link>http://blog.timtropberger.de/2010/04/seo-freundliche-urls/</link>
		<comments>http://blog.timtropberger.de/2010/04/seo-freundliche-urls/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 15:35:23 +0000</pubDate>
		<dc:creator>Tim Tropberger</dc:creator>
				<category><![CDATA[Technik]]></category>
		<category><![CDATA[Tipps]]></category>
		<category><![CDATA[Lighttpd]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[Tuxonauten]]></category>
		<category><![CDATA[URL]]></category>
		<category><![CDATA[VHost]]></category>

		<guid isPermaLink="false">http://blog.timtropberger.de/?p=426</guid>
		<description><![CDATA[Für ein neues Projekt musste ich grade die VHosts von Lighttpd anpassen. Das ganze soll unter mehreren URLs erreichbar sein, aber auf die Hauptdomain Tuxonauten.de verweisen. Die entsprechenden Einträge sehen so aus: $HTTP["host"] =~ &#8220;^www\.tuxonauten\.de&#8221; { server.document-root = &#8220;/var/www/&#8221; server.error-handler-404 = &#8220;/error_handler.php&#8221; } $HTTP["host"] =~ &#8220;^tuxonauten\.de&#8221; { url.redirect-code = 301 url.redirect = ( &#8220;^/(.*)$&#8221; =&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>Für ein neues Projekt musste ich grade die VHosts von Lighttpd anpassen. Das ganze soll unter mehreren URLs erreichbar sein, aber auf die Hauptdomain Tuxonauten.de verweisen. Die entsprechenden Einträge sehen so aus:</p>
<blockquote><p>$HTTP["host"] =~ &#8220;^www\.tuxonauten\.de&#8221; {<br />
server.document-root = &#8220;/var/www/&#8221;<br />
server.error-handler-404 = &#8220;/error_handler.php&#8221;<br />
}</p>
<p>$HTTP["host"] =~ &#8220;^tuxonauten\.de&#8221; {<br />
url.redirect-code = 301<br />
url.redirect = (<br />
&#8220;^/(.*)$&#8221; =&gt; &#8220;http://www.tuxonauten.de/$1&#8243;,<br />
)}</p>
<p>$HTTP["host"] =~ &#8220;^www\.tuxonaut\.de&#8221; {<br />
url.redirect-code = 301<br />
url.redirect = (<br />
&#8220;^/(.*)$&#8221; =&gt; &#8220;http://www.tuxonauten.de/$1&#8243;,<br />
)}</p>
<p>$HTTP["host"] =~ &#8220;^tuxonaut\.de&#8221; {<br />
url.redirect-code = 301<br />
url.redirect = (<br />
&#8220;^/(.*)$&#8221; =&gt; &#8220;http://www.tuxonauten.de/$1&#8243;,<br />
)}</p></blockquote>
<p>Das ganze habe ich nach einer <a href="http://sebastianconstapel.de/seo/sauberer-301-redirect-mit-lighttpd.html#comments">Vorlage von Sebastian Constapel</a> geschrieben.</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=SEO+freundliche+URLs+http%3A%2F%2Ftinyurl.com%2Fy27bzh7" title=" "><img class="nothumb" src="http://blog.timtropberger.de/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/intent/tweet?text=SEO+freundliche+URLs+http%3A%2F%2Ftinyurl.com%2Fy27bzh7" title=" "> </a></p></div>]]></content:encoded>
			<wfw:commentRss>http://blog.timtropberger.de/2010/04/seo-freundliche-urls/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

