<?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>Two Drifters &#187; Apache</title>
	<atom:link href="http://blog.ideaday.de/max/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ideaday.de/max</link>
	<description>Off to see the world.</description>
	<lastBuildDate>Sun, 05 Feb 2012 16:48:05 +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>Russian and Chinese editing with Concrete 5</title>
		<link>http://blog.ideaday.de/max/2010/03/russian-and-chinese-editing-with-concrete-5/</link>
		<comments>http://blog.ideaday.de/max/2010/03/russian-and-chinese-editing-with-concrete-5/#comments</comments>
		<pubDate>Sun, 21 Mar 2010 13:35:39 +0000</pubDate>
		<dc:creator>Max</dc:creator>
				<category><![CDATA[Concrete 5]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Concrete5]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[fix]]></category>

		<guid isPermaLink="false">http://blog.ideaday.de/max/2010/03/russian-and-chinese-editing-with-concrete-5/</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.ideaday.de/max/2010/03/russian-and-chinese-editing-with-concrete-5/' addthis:title='Russian and Chinese editing with Concrete 5 '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>It is not enough to add a Character set to your Template // or store it in UTF-8 without BOM (so the headers attached by PHP won't break). If TinyMCE only displays gibberish instead of the Russian / Chinese / &#8230; text you entered in edit mode, you should edit your .htaccess (located in the [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://blog.ideaday.de/max/2010/03/russian-and-chinese-editing-with-concrete-5/' addthis:title='Russian and Chinese editing with Concrete 5 ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.ideaday.de/max/2010/03/russian-and-chinese-editing-with-concrete-5/' addthis:title='Russian and Chinese editing with Concrete 5 '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div><p align="center"><a href="http://ideadayblog.ideaday.netdna-cdn.com/max/wp-content/uploads/2010/03/concrete_multi_language.jpg"><img hspace="10" alt="concrete multi language" vspace="10" src="http://ideadayblog.ideaday.netdna-cdn.com/max/wp-content/uploads/2010/03/concrete_multi_language-small.jpg" width="450" height="303" /></a></p>
<p>It is not enough to add a Character set to your Template // or store it in UTF-8 without BOM (so the headers attached by PHP won't break).</p>
<p>If TinyMCE only displays gibberish instead of the Russian / Chinese / &#8230; text you entered in edit mode, you should edit your .htaccess (located in the root directory of your site) and add the following:</p>
<blockquote>
<p><em>AddDefaultCharset UTF-8</em></p>
</blockquote>
<p>Optionally, while you're at it, you can enable caching for your site:</p>
<blockquote>
<p><em>#Speed UP!<br />
&lt;IfModule mod_expires.c&gt;<br />
 ExpiresActive On<br />
 ExpiresDefault "access plus 10 years"<br />
 ExpiresByType text/html "access plus 30 seconds"<br />
&lt;/IfModule&gt;</em></p>
</blockquote>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://blog.ideaday.de/max/2010/03/russian-and-chinese-editing-with-concrete-5/' addthis:title='Russian and Chinese editing with Concrete 5 ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://blog.ideaday.de/max/2010/03/russian-and-chinese-editing-with-concrete-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Seiten beschleunigen</title>
		<link>http://blog.ideaday.de/max/2010/03/seiten-beschleunigen/</link>
		<comments>http://blog.ideaday.de/max/2010/03/seiten-beschleunigen/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 17:20:29 +0000</pubDate>
		<dc:creator>Max</dc:creator>
				<category><![CDATA[German]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[Administration]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Beschleunigung]]></category>
		<category><![CDATA[Geschwindigkeit]]></category>
		<category><![CDATA[mod_expires]]></category>
		<category><![CDATA[Optimierung]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[server load]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Webseite]]></category>

		<guid isPermaLink="false">http://blog.ideaday.de/max/2010/03/seiten-beschleunigen/</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.ideaday.de/max/2010/03/seiten-beschleunigen/' addthis:title='Seiten beschleunigen '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>Bereits beim Entwickeln der Seite ist es angenehmer, wenn der Server schneller reagiert. Diese Yahoo! Seite hat mehr Informationen über Seitenbeschleunigung. Interessante Tools werden ebenfalls angeboten: YSlow &#8211; ein Firefox Plugin was ermittelt WARUM die Seite langsam ist Smush.it™ &#8211; verkleinert Bilder verlustfrei! Um möglichst viele Elemente in dem BrowserCache vorzuhalten, sollte man die Expires [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://blog.ideaday.de/max/2010/03/seiten-beschleunigen/' addthis:title='Seiten beschleunigen ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.ideaday.de/max/2010/03/seiten-beschleunigen/' addthis:title='Seiten beschleunigen '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div><p>Bereits beim Entwickeln der Seite ist es angenehmer, wenn der Server schneller reagiert.</p>
<p>Diese <a href="http://developer.yahoo.com/performance/" target="_blank">Yahoo! Seite</a> hat mehr Informationen über Seitenbeschleunigung.</p>
<p>Interessante Tools werden ebenfalls angeboten:</p>
<ul>
<li>
<div><a href="http://developer.yahoo.com/yslow/" target="_blank">YSlow</a> &#8211; ein Firefox Plugin was ermittelt WARUM die Seite langsam ist</div>
</li>
<li>
<div><a href="http://developer.yahoo.com/yslow/smushit/index.html">Smush.it™</a> &#8211; verkleinert Bilder verlustfrei!</div>
</li>
</ul>
<p>Um möglichst viele Elemente in dem BrowserCache vorzuhalten, sollte man die Expires Headers richtig setzen.</p>
<p><a href="http://www.askapache.com/htaccess/speed-up-your-site-with-caching-and-cache-control.html" target="_blank">Dieser Artikel</a> gibt eine kurze Anleitung für Apache &amp; mod_rewrite.</p>
<p>Ich benutze z.B. folgendes in meiner .htaccess:</p>
<blockquote>
<p>#Speed UP!<br />
&lt;IfModule mod_expires.c&gt;<br />
 ExpiresActive On<br />
 ExpiresDefault "access plus 10 years"<br />
 ExpiresByType text/html "access plus 30 seconds"<br />
&lt;/IfModule&gt;</p>
</blockquote>
<p>Natürlich muss man dazu sicherstellen dass <strong>mod_expires</strong> installiert ist. Unter Debian:</p>
<blockquote>
<p>ls -l /etc/apache2/mods-enabled/</p>
</blockquote>
<p>Unter Debian hat man auch bequeme Tools um Module zu aktivieren und zu deaktivieren (einfach aufrufen, sie bieten die entsprechenden Module an):</p>
<blockquote>
<p>a2enmod &#8211; Modul aktivieren<br />
a2dismod &#8211; Modul deaktivieren</p>
</blockquote>
<p>Weitere Optimierungsmöglichkeiten bestehen im Einsatz von Kompression &#8211; mod_deflate, Reduktion der eingebundenen Dateien (ganz wichtig!) und natürlich dem Einsatz eines CDNs &#8211; eines Content Delivery Networks. Wir empfehlen <a href="http://www.maxcdn.com/" target="_blank">MaxCDN</a> (das erste Terabyte für 10$!) bzw. <a href="http://www.netdna.com/" target="_blank">NetDNA</a>.</p>
<p>Ein netter Nebeneffekt der meisten dieser Optimierungen ist die Reduktion der Last auf den Server &#8211; was wiederum zu höherer Performance bei vielen Besuchen führt!!</p>
<p>Auf Wunsch optimieren wir Ihre Seite hinsichtlich der beschriebenen Prinzipien um die optimale Geschwindigkeit für Sie und Ihre Besucher herauszuholen. Nehmen Sie mit uns <a href="http://www.ideaday.de/kontakt">jetzt Kontakt</a> auf!</p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://blog.ideaday.de/max/2010/03/seiten-beschleunigen/' addthis:title='Seiten beschleunigen ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://blog.ideaday.de/max/2010/03/seiten-beschleunigen/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>mod_rewrite and Concrete5</title>
		<link>http://blog.ideaday.de/max/2010/01/mod_rewrite-and-concrete5/</link>
		<comments>http://blog.ideaday.de/max/2010/01/mod_rewrite-and-concrete5/#comments</comments>
		<pubDate>Sun, 24 Jan 2010 18:31:40 +0000</pubDate>
		<dc:creator>Max</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[Concrete 5]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[BlogDesk]]></category>
		<category><![CDATA[Concrete5]]></category>

		<guid isPermaLink="false">http://blog.ideaday.de/max/2010/01/mod_rewrite-and-concrete5/</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.ideaday.de/max/2010/01/mod_rewrite-and-concrete5/' addthis:title='mod_rewrite and Concrete5 '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>I was trying to additionally rewrite an URL before letting the classical Concrete5 mod_rewrite happen &#8211; everything matched to index.php, like so: &#60;IfModule mod_rewrite.c&#62; RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] &#60;/IfModule&#62; Íf you try to paste any additional RewriteRule before this catch-all rule, your Apache will run [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://blog.ideaday.de/max/2010/01/mod_rewrite-and-concrete5/' addthis:title='mod_rewrite and Concrete5 ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.ideaday.de/max/2010/01/mod_rewrite-and-concrete5/' addthis:title='mod_rewrite and Concrete5 '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div><p>I was trying to additionally rewrite an URL before letting the classical Concrete5 mod_rewrite happen &#8211; everything matched to index.php, like so:</p>
<blockquote>
<p>&lt;IfModule mod_rewrite.c&gt;<br />
 RewriteEngine On<br />
 RewriteBase /</p>
<p> RewriteCond %{REQUEST_FILENAME} !-f<br />
 RewriteCond %{REQUEST_FILENAME} !-d</p>
<p> RewriteRule ^(.*)$ index.php/$1 [L]<br />
&lt;/IfModule&gt;</p>
</blockquote>
<p>Íf you try to paste <strong>any additional</strong> RewriteRule <strong>before</strong> this catch-all rule, your Apache will run into an endless loop, probably giving up with a <strong>500 error</strong>. Your log will show something like:</p>
<blockquote>
<p><em>access.log</em></p>
<p>(&#8230;) "GET" "114.ideaday.de" "/stellenmarkt/stellenangebote/" "redirect<strong>:/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/</strong>stellenmarkt/stellenangebote/"<br />
<em>error.log</em></p>
<p>[Sun Jan 24 16:57:52 2010] [error] [client 85.181.108.54] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.</p>
</blockquote>
<p>Apparently mod_rewrite fails to recognize index.php as already being rewritten and keeps looping through the rule over and over again. Recent versions of Apache will stop after 10 iterations and yield a 500 error.<br />
After nearly giving up, I've figured out a solution how to do this:</p>
<blockquote>
<p>&lt;IfModule mod_rewrite.c&gt;<br />
 RewriteEngine On<br />
 RewriteBase /</p>
<p> RewriteRule ^stellenmarkt/stellengesuche/(.*)-([0-9]+)[/]*$ stellenmarkt/stellengesuche/gdemo/?id=$2 [L,QSA]</p>
<p> RewriteCond %{REQUEST_FILENAME} !-f<br />
 RewriteCond %{REQUEST_FILENAME} !-d</p>
<p> RewriteRule ^(.*)$ index.php/$1 [L]<br />
&lt;/IfModule&gt;</p>
</blockquote>
<p>As you see, the additional rule is placed <strong>before</strong> the Rewrite Conditions! This works, no more endless loops :-)</p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://blog.ideaday.de/max/2010/01/mod_rewrite-and-concrete5/' addthis:title='mod_rewrite and Concrete5 ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://blog.ideaday.de/max/2010/01/mod_rewrite-and-concrete5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 1/13 queries in 0.009 seconds using disk: basic
Object Caching 510/530 objects using disk: basic
Content Delivery Network via ideadayblog.ideaday.netdna-cdn.com

Served from: blog.ideaday.de @ 2012-02-06 18:45:38 -->
