<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Snippets code from my daily experience &#187; apache_httpd</title>
	<atom:link href="http://dafizilla.wordpress.com/category/apache_httpd/feed/" rel="self" type="application/rss+xml" />
	<link>http://dafizilla.wordpress.com</link>
	<description>Just another unnecessary code resource blog</description>
	<lastBuildDate>Sun, 20 Dec 2009 10:00:19 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='dafizilla.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/635b338f35d7304cae2e1b31926d3592?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Snippets code from my daily experience &#187; apache_httpd</title>
		<link>http://dafizilla.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://dafizilla.wordpress.com/osd.xml" title="Snippets code from my daily experience" />
		<item>
		<title>Simulating top level domains on localhost</title>
		<link>http://dafizilla.wordpress.com/2007/06/24/simulation-top-level-domains-on-localhost/</link>
		<comments>http://dafizilla.wordpress.com/2007/06/24/simulation-top-level-domains-on-localhost/#comments</comments>
		<pubDate>Sun, 24 Jun 2007 06:44:02 +0000</pubDate>
		<dc:creator>dafi</dc:creator>
				<category><![CDATA[apache_httpd]]></category>

		<guid isPermaLink="false">http://dafizilla.wordpress.com/2007/06/24/simulation-top-level-domains-on-localhost/</guid>
		<description><![CDATA[On my local Apache test server I&#8217;ve configured many fake TLDs that take their contents from different directories (DocumentRoots).
But I found the problem to allow web browser to serve the correct content.
For example if I type the url http://dafizilla.stage I want to get content from /dafi/stage/dafizilla
if I type the url http://svn.myjavasrc I want to get [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=14&subd=dafizilla&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>On my local Apache test server I&#8217;ve configured many fake <acronym title="Top level domain">TLD</acronym>s that take their contents from different directories (DocumentRoots).</p>
<p>But I found the problem to allow web browser to serve the correct content.</p>
<p>For example if I type the url http://dafizilla.stage I want to get content from /dafi/stage/dafizilla</p>
<p>if I type the url http://svn.myjavasrc I want to get content from /dafi/src/svn</p>
<p>Obviously dafizilla.stage and svn.myjavasrc are fake <acronym title="Top level domain">TLD</acronym> and they are hosted on same Apache Server on my localhost.</p>
<p>Well the solution is to use Apache VirtualHost.</p>
<p>Add to <a href="//etc/hosts">/etc/hosts</a> on Linux or <a href="//C:/WINDOWS/system32/drivers/etc/hosts" title="/../drivers/etc/hosts">C:/WINDOWS/&#8230;/etc/hosts</a> on Windows the fake <acronym title="Top level domain">TLD</acronym>s for localhost</p>
<p>127.0.0.1          <font color="#ff0000">dafizilla.stage</font> <font color="#ff6600">svn.myjavasrc</font></p>
<p>Then define in httpd.conf the VirtualHosts:<br />
<code><br />
NameVirtualHost localhost</code></p>
<p><code>&lt;VirtualHost localhost&gt;<br />
DocumentRoot /dafi/stage/dafizilla<br />
ServerName <font color="#ff0000">dafizilla.stage</font><br />
ErrorLog logs/stage-dafizilla-host-error_log<br />
&lt;/VirtualHost&gt;</code></p>
<p><code>&lt;VirtualHost localhost&gt;<br />
DocumentRoot /dafi/src/svn<br />
ServerName <font color="#ff6600">svn.myjavasrc</font><br />
ErrorLog logs/svn-host-error_log<br />
&lt;/VirtualHost&gt;</code></p>
<p>The browser inserts into HTTP headers the domain name that is lookedup by Apache server</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dafizilla.wordpress.com/14/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dafizilla.wordpress.com/14/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dafizilla.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dafizilla.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dafizilla.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dafizilla.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dafizilla.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dafizilla.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dafizilla.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dafizilla.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dafizilla.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dafizilla.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=14&subd=dafizilla&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dafizilla.wordpress.com/2007/06/24/simulation-top-level-domains-on-localhost/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5759d7f64a710425e4ab730ba7a8311e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dafi</media:title>
		</media:content>
	</item>
		<item>
		<title>Using UTF-8 with Apache and Jboss</title>
		<link>http://dafizilla.wordpress.com/2007/06/22/using-utf-8-with-apache-and-jboss/</link>
		<comments>http://dafizilla.wordpress.com/2007/06/22/using-utf-8-with-apache-and-jboss/#comments</comments>
		<pubDate>Fri, 22 Jun 2007 00:26:25 +0000</pubDate>
		<dc:creator>dafi</dc:creator>
				<category><![CDATA[apache_httpd]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jboss]]></category>
		<category><![CDATA[utf-8]]></category>

		<guid isPermaLink="false">http://dafizilla.wordpress.com/2007/06/22/using-utf-8-with-apache-and-jboss/</guid>
		<description><![CDATA[I&#8217;ve found a strange problem with my first real UTF-8 web application&#8230;
The urls sent in GET didn&#8217;t decoded properly and I was very astonished, my code was written correctly but the problem was present.
BTW the problem wasn&#8217;t on my code but in Jboss (in Tomcat embedded instance).
The connector must have the attribute URIEncoding otherwise the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=11&subd=dafizilla&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I&#8217;ve found a strange problem with my first <font color="#ff0000">real</font> UTF-8 web application&#8230;</p>
<p>The urls sent in GET didn&#8217;t decoded properly and I was very astonished, my code was written correctly but the problem was present.</p>
<p>BTW the problem wasn&#8217;t on my code but in Jboss (in Tomcat embedded instance).</p>
<p>The connector must have the attribute <a href="http://tomcat.apache.org/faq/connectors.html#utf8">URIEncoding</a> otherwise the webapp never will work.</p>
<p>Due to the fact I use mod_jk (ie AJP13 protocol) this lifesaver attribute must be added in AJP13 connector, too</p>
<p>I love when problems disappear modifing only a configuration file <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>For sanity check I&#8217;ve added UTF-8 support also in Apache Server but I suspect this isn&#8217;t really necessary <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>In http.conf be sure to have the <a href="http://httpd.apache.org/docs/2.0/mod/core.html#adddefaultcharset">AddDefaultCharset</a> directive set as shown below</p>
<p><code> AddDefaultCharset utf-8</code></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dafizilla.wordpress.com/11/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dafizilla.wordpress.com/11/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dafizilla.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dafizilla.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dafizilla.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dafizilla.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dafizilla.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dafizilla.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dafizilla.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dafizilla.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dafizilla.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dafizilla.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=11&subd=dafizilla&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dafizilla.wordpress.com/2007/06/22/using-utf-8-with-apache-and-jboss/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5759d7f64a710425e4ab730ba7a8311e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dafi</media:title>
		</media:content>
	</item>
	</channel>
</rss>