<?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>Tuts4Tech &#187; vhosts</title>
	<atom:link href="http://tuts4tech.net/tag/vhosts/feed/" rel="self" type="application/rss+xml" />
	<link>http://tuts4tech.net</link>
	<description>Tech Tutorials</description>
	<lastBuildDate>Tue, 04 May 2010 20:35:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Lighttpd virtual hosting</title>
		<link>http://tuts4tech.net/2009/06/13/lighttpd-virtual-hosting/</link>
		<comments>http://tuts4tech.net/2009/06/13/lighttpd-virtual-hosting/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 01:42:51 +0000</pubDate>
		<dc:creator>Duffy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[port 80]]></category>
		<category><![CDATA[vhosts]]></category>
		<category><![CDATA[virtual hosting]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://tuts4tech.co.cc/?p=258</guid>
		<description><![CDATA[Virtual hosting allows you to host many websites from one server. Setup The Folders and users Lighttpd Config Open your lighttpd.conf Add the following for the virtual host configuration Save your config and restart lighttpd]]></description>
			<content:encoded><![CDATA[<p>Virtual hosting allows you to host many websites from one server.</p>
<ol>
<h3>Setup The Folders and users</h3>
<li>
<pre class="brush: plain; title: ; notranslate">adduser domain1
addgroup domain1
adduser www-data domain1
mkdir -p /home/domain1
chown domain1:domain1 -R /home/domain1
chmod 750 -R /home/domain1</pre>
<p>
<pre class="brush: plain; title: ; notranslate">adduser domain2
addgroup domain2
adduser www-data domain2
mkdir -p /home/domain2
chown domain2:domain2 -R /home/domain2
chmod 750 -R /home/domain2</pre>
</li>
</ol>
<ol>
<h3>Lighttpd Config</h3>
<li>Open your lighttpd.conf
<pre class="brush: plain; title: ; notranslate">nano /etc/lighttpd.conf</pre>
</li>
<li>Add the following for the virtual host configuration
<pre class="brush: plain; title: ; notranslate">$HTTP[&quot;host&quot;] == &quot;domain1.com&quot; {
server.document-root = &quot;/home/domain1&quot;
accesslog.filename = &quot;/var/log/lighttpd/domain1/access.log&quot;
}</pre>
<p></p>
<pre class="brush: plain; title: ; notranslate">$HTTP[&quot;host&quot;] == &quot;domain2.com&quot; {
server.document-root = &quot;/home/domain2&quot;
accesslog.filename = &quot;/var/log/lighttpd/domain2/access.log&quot;
}</pre>
</li>
<li>Save your config and restart lighttpd
<pre class="brush: plain; title: ; notranslate">/etc/init.d/lighttpd restart</pre>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://tuts4tech.net/2009/06/13/lighttpd-virtual-hosting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

