<?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:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
>

<channel>
	<title>Cyconet Blog &#187; apache</title>
	<atom:link href="http://blog.waja.info/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.waja.info</link>
	<description>Just a place to be!</description>
	<lastBuildDate>Wed, 28 Apr 2010 08:22:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
		<item>
		<title>[selfnote] How to handle multiple domains with one apache vhost in a smart way</title>
		<link>http://blog.waja.info/2008/03/20/selfnote-how-to-handle-multiple-domains-with-one-apache-vhost-in-a-smart-way/</link>
		<comments>http://blog.waja.info/2008/03/20/selfnote-how-to-handle-multiple-domains-with-one-apache-vhost-in-a-smart-way/#comments</comments>
		<pubDate>Thu, 20 Mar 2008 14:02:57 +0000</pubDate>
		<dc:creator>cyco</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[planet]]></category>
		<category><![CDATA[selfnote]]></category>

		<guid isPermaLink="false">http://blog.waja.info/2008/03/20/selfnote-how-to-handle-multiple-domains-with-one-apache-vhost-in-a-smart-way/</guid>
		<description><![CDATA[Today a customer asked for hosting several domains with different content on one apache virtual host. The little tricky part was, that the sites should not be accessed by subdirs like http://domain20.org/subdir20/ and http://domain21.org/subdir21/ which can be done with a little script which parses the $_SERVER['HTTP_HOST']. So mod_rewrite is an option. To make it user [...]]]></description>
			<content:encoded><![CDATA[<p>Today a customer asked for hosting several domains with different content on one apache virtual host. The little tricky part was, that the sites should not be accessed by subdirs like http://domain20.org/subdir20/ and http://domain21.org/subdir21/ which can be done with a little script which parses the $_SERVER['HTTP_HOST']. So <a target="new" href="http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html">mod_rewrite</a> is an option.<br />
To make it user accessable, we use .htaccess. This requires &#8220;AllowOverride +FileInfo&#8221; to be set for the DocumentRoot in the vhost config. The .htaccess in DocumentRoot could look something like:</p>
<p class="code">
RewriteEngine On<br />
RewriteBase   /<br />
RewriteCond %{HTTP_HOST} domain10.org$ [OR]<br />
RewriteCond %{HTTP_HOST} domain11.org$<br />
RewriteCond %{REQUEST_FILENAME} !dir1/<br />
RewriteCond %{REQUEST_FILENAME} -f [OR]<br />
RewriteCond %{REQUEST_FILENAME} -d<br />
RewriteRule (.*)        dir1/$1 [L]<br />
RewriteCond %{HTTP_HOST} domain20.org$ [OR]<br />
RewriteCond %{HTTP_HOST} domain21.org$<br />
RewriteCond %{REQUEST_FILENAME} !dir2/<br />
RewriteCond %{REQUEST_FILENAME} -f [OR]<br />
RewriteCond %{REQUEST_FILENAME} -d<br />
RewriteRule (.*)        dir2/$1 [L]</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waja.info/2008/03/20/selfnote-how-to-handle-multiple-domains-with-one-apache-vhost-in-a-smart-way/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
	</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->