<?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>Blog Symfony - Lexik Montpellier &#187; httpd-vhosts.conf</title>
	<atom:link href="http://www.lexik.fr/blog/symfony/tag/httpd-vhostsconf/feed" rel="self" type="application/rss+xml" />
	<link>http://www.lexik.fr/blog/symfony</link>
	<description>Blog sur le développement Web PHP</description>
	<lastBuildDate>Tue, 20 Jul 2010 08:35:36 +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 hosts dans Wamp pour Symfony</title>
		<link>http://www.lexik.fr/blog/symfony/symfony/wamp-virtual-host-109</link>
		<comments>http://www.lexik.fr/blog/symfony/symfony/wamp-virtual-host-109#comments</comments>
		<pubDate>Sun, 22 Feb 2009 18:33:48 +0000</pubDate>
		<dc:creator>Samuel Breton</dc:creator>
				<category><![CDATA[Symfony]]></category>
		<category><![CDATA[host]]></category>
		<category><![CDATA[httpd]]></category>
		<category><![CDATA[httpd-vhosts.conf]]></category>
		<category><![CDATA[virtual hosts]]></category>
		<category><![CDATA[wamp]]></category>

		<guid isPermaLink="false">http://www.lexik.fr/sfblog/?p=109</guid>
		<description><![CDATA[Configuration des &#171;&#160;vitual hosts&#160;&#187; dans Wamp pour pouvoir gérer plusieurs projets Symfony. Dans cet exemple nous allons configurer 2 sites : Site A : Emplacement : c:\wamp\www\sf_projects\siteA Host : siteA.local Site B : Emplacement : c:\wamp\www\sf_projects\siteB Host : siteB.local httpd-vhosts.conf Editer le fichier : C:\wamp\bin\apache\Apache2.2.11\conf\extra\httpd-vhosts.conf ?View Code TEXTNameVirtualHost *:80 #Site A &#60;VirtualHost *:80&#62; ServerAdmin admin@siteA.com [...]]]></description>
			<content:encoded><![CDATA[<p>Configuration des &laquo;&nbsp;vitual hosts&nbsp;&raquo; dans Wamp pour pouvoir gérer plusieurs projets Symfony.<br />
<span id="more-109"></span><br />
Dans cet exemple nous allons configurer 2 sites :</p>
<ul>
<li>Site A :<br />
Emplacement : c:\wamp\www\sf_projects\siteA<br />
Host : siteA.local</li>
<li>Site B :<br />
Emplacement : c:\wamp\www\sf_projects\siteB<br />
Host : siteB.local</li>
</ul>
<h2>httpd-vhosts.conf</h2>
<ul>
<li>Editer le fichier :<br />
<blockquote><p>C:\wamp\bin\apache\Apache2.2.11\conf\extra\httpd-vhosts.conf</p></blockquote>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p109code2'); return false;">View Code</a> TEXT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p1092"><td class="code" id="p109code2"><pre class="text" style="font-family:monospace;">NameVirtualHost *:80
#Site A
&lt;VirtualHost *:80&gt;
    ServerAdmin admin@siteA.com
    DocumentRoot &quot;C:\wamp\www\sf_projects\siteA\web&quot;
    ServerName siteA.local
    ServerAlias siteA.local
    ErrorLog &quot;logs/siteA.localhost-error.log&quot;
    CustomLog &quot;logs/siteA.localhost-access.log&quot; common
    Alias /sf C:\wamp\www\sf_projects\siteA\lib\vendor\symfony\data\web\sf
&lt;/VirtualHost&gt;
#Site B
&lt;VirtualHost *:80&gt;
    ServerAdmin admin@siteB.com
    DocumentRoot &quot;C:\wamp\www\sf_projects\siteB\web&quot;
    ServerName siteB.local
    ServerAlias siteB.local
    ErrorLog &quot;logs/siteB.localhost-error.log&quot;
    CustomLog &quot;logs/siteB.localhost-access.log&quot; common
    Alias /sf C:\wamp\www\sf_projects\siteB\lib\vendor\symfony\data\web\sf
&lt;/VirtualHost&gt;
#Pour garder son localhost opérationnel
&lt;VirtualHost *:80&gt;
    DocumentRoot &quot;C:\wamp\www&quot;
    ServerName localhost
    ServerAlias localhost
&lt;/VirtualHost&gt;</pre></td></tr></table></div>

</li>
</ul>
<h2>httpd.conf</h2>
<ul>
<li>Editer le fichier :<br />
<blockquote><p>C:\wamp\bin\apache\Apache2.2.11\conf\httpd.conf</p></blockquote>
</li>
<li> Décommenter la ligne :<br />
<blockquote><p>#Include conf/extra/httpd-vhosts.conf</p></blockquote>
</li>
</ul>
<h2>hosts</h2>
<ul>
<li>Editer le fichier :<br />
<blockquote><p>C:\WINDOWS\system32\drivers\etc\hosts</p></blockquote>
</li>
<li>Ajouter ces 2 lignes :<br />
<blockquote><p>127.0.0.1       localhost siteA.local<br />
127.0.0.1       localhost siteB.local</p></blockquote>
</li>
</ul>
<p>Voilà, redémarrez Wamp, et vos sites  sont accessibles aux adresses suivantes :</p>
<blockquote><p>http://siteA.local/</p>
<p>http://siteB.local/</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.lexik.fr/blog/symfony/symfony/wamp-virtual-host-109/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
