<?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>MCforge &#187; virtual host</title>
	<atom:link href="http://www.mcforge.net/blog/tag/virtual-host/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mcforge.net</link>
	<description>Web development, software e pensieri sul Web 2.0</description>
	<lastBuildDate>Tue, 14 Jul 2009 09:30:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Virtual host su MAC OS X Leopard con XAMPP</title>
		<link>http://www.mcforge.net/blog/virtual-host-su-mac-os-x-leopard-con-xampp/</link>
		<comments>http://www.mcforge.net/blog/virtual-host-su-mac-os-x-leopard-con-xampp/#comments</comments>
		<pubDate>Sun, 07 Sep 2008 20:30:55 +0000</pubDate>
		<dc:creator>Marco Colli</dc:creator>
				<category><![CDATA[Web development]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[virtual host]]></category>
		<category><![CDATA[xampp]]></category>

		<guid isPermaLink="false">http://www.mcforge.net/blog/?p=41</guid>
		<description><![CDATA[Vediamo come configurare un host virtuale su Leopard utilizzando XAMPP. Aprite il terminale e scrivete: vi /Applications/xampp/etc/httpd.conf Successivamente trovate e decommentate la seguente riga: # Virtual hosts Include /Applications/xampp/etc/extra/httpd-vhosts.conf Salvate e digitate quindi nel terminale: vi /Applications/xampp/etc/extra/httpd-vhosts.conf Ora potete modificare il file aggiungendo un host virtuale per ogni sito da ospitare. Ecco un virtual host [...]]]></description>
			<content:encoded><![CDATA[<p>Vediamo come configurare un host virtuale su Leopard utilizzando XAMPP.</p>
<p>Aprite il terminale e scrivete:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>xampp<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>httpd.conf</pre></div></div>

<p>Successivamente trovate e decommentate la seguente riga:</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #adadad; font-style: italic;"># Virtual hosts</span>
<span style="color: #00007f;">Include</span> /Applications/xampp/etc/extra/httpd-vhosts.conf</pre></div></div>

<p>Salvate e digitate quindi nel terminale:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>xampp<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>extra<span style="color: #000000; font-weight: bold;">/</span>httpd-vhosts.conf</pre></div></div>

<p>Ora potete modificare il file aggiungendo un host virtuale per ogni sito da ospitare. Ecco un virtual host molto semplice di esempio:</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;">    <span style="color: #00007f;">ServerAdmin</span> webmaster@dummy-host.<span style="color: #00007f;">example</span>.com
    <span style="color: #00007f;">DocumentRoot</span> <span style="color: #7f007f;">&quot;/Applications/xampp/xamppfiles/htdocs/dummy-host.example.com&quot;</span>
    <span style="color: #00007f;">ServerName</span> dummy-host.<span style="color: #00007f;">example</span>.com
    <span style="color: #00007f;">ServerAlias</span> www.dummy-host.<span style="color: #00007f;">example</span>.com
    <span style="color: #00007f;">ErrorLog</span> <span style="color: #7f007f;">&quot;logs/dummy-host.example.com-error_log&quot;</span>
    <span style="color: #00007f;">CustomLog</span> <span style="color: #7f007f;">&quot;logs/dummy-host.example.com-access_log&quot;</span> common</pre></div></div>

<p>Prima di poter raggiungere il vostro sito locale dovete ancora modificare il file hosts del vostro mac.</p>
<p>Digitate il seguente comando:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>hosts</pre></div></div>

<p>e aggiungete una riga simile a questa:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">127.0.0.1       dummy-host.example.com</pre></div></div>

<p>Fatto! Se tutto è andato bene dovreste vedere il vostro sito semplicemente digitando l&#8217;indirizzo sul browser. Ricordate che il sito è visibile solamente dal vostro computer!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mcforge.net/blog/virtual-host-su-mac-os-x-leopard-con-xampp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
