<?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; host</title>
	<atom:link href="http://www.lexik.fr/blog/symfony/tag/host/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 host sous Ubuntu</title>
		<link>http://www.lexik.fr/blog/symfony/ubuntu/virtual-host-sous-ubuntu-192</link>
		<comments>http://www.lexik.fr/blog/symfony/ubuntu/virtual-host-sous-ubuntu-192#comments</comments>
		<pubDate>Tue, 03 Mar 2009 11:13:39 +0000</pubDate>
		<dc:creator>Samuel Breton</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[host]]></category>
		<category><![CDATA[virtual]]></category>

		<guid isPermaLink="false">http://www.lexik.fr/sfblog/?p=192</guid>
		<description><![CDATA[&#160; Mise en place d&#8217;un Virtual Host bas&#233;, sur le nom, sous Ubuntu. Pr&#233;-requis : Le dossier du projet doit exister. Cr&#233;er un fichier du nom du projet dans : /etc/apache2/sites-available &#201;dition du fichier: Exemple avec le projet Love: ?View Code XML&#60;virtualhost&#62; ServerName love DocumentRoot &#38;quot;/home/sfprojects/love/web&#38;quot; DirectoryIndex index.php Alias /sf /home/sfprojects/love/lib/vendor/symfony/data/web/sf &#60;directory&#62; AllowOverride All Allow [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;">&nbsp;</p>
<div style="text-align: left;">Mise en place d&#8217;un Virtual Host bas&eacute;, sur le nom, sous Ubuntu.</div>
<p><span id="more-192"></span></p>
<div style="text-align: left;">
<ul>
<li><span style="font-size: x-small;">Pr&eacute;-requis : Le dossier du projet doit exister.</span></li>
</ul>
<ul>
<li><span style="font-size: x-small;">Cr&eacute;er un fichier du nom du projet dans : </span>/etc/apache2/sites-available</li>
</ul>
<ul>
<li>&Eacute;dition du fichier:</li>
</ul>
<div style="text-align: left;"><span style="text-decoration: underline;">Exemple avec le projet Love:</span></div>

<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('p192code2'); return false;">View Code</a> XML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p1922"><td class="code" id="p192code2"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;virtualhost<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> ServerName love DocumentRoot <span style="color: #ddbb00;">&amp;quot;</span>/home/sfprojects/love/web<span style="color: #ddbb00;">&amp;quot;</span> DirectoryIndex index.php  Alias /sf /home/sfprojects/love/lib/vendor/symfony/data/web/sf  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;directory<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> AllowOverride All Allow from All <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/directory<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;br</span> <span style="color: #000000; font-weight: bold;">/&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/virtualhost<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<ul>
<li>G&eacute;n&eacute;ration du fichier dans : /etc/apache2/sites-enabled via la commande :</li>
</ul>
<div style="text-align: center;">
<div style="text-align: left;">
<div style="text-align: center;">a2ensite <strong>nom_du_projet</strong></div>
<div style="text-align: left;">
<div style="text-align: left;">
<ul>
<li>&Eacute;dition du fichier: /etc/hosts : ajouter le nom de l&#8217;host &agrave; la ligne localhost correspondante:</li>
</ul>
</div>
<div style="text-align: center;">127.0.0.1&nbsp;&nbsp; &nbsp;localhost <strong>nom_de_l_host_souhait&eacute;</strong></div>
</div>
</div>
</div>
<ul>
<li>Red&eacute;marrer apache :&nbsp; /etc/init.d/apache2 restart</li>
</ul>
</div>
<div style="text-align: left;">
<div style="text-align: right;"><em><span style="text-decoration: underline;">cf:</span> http://doc.ubuntu-fr.org/tutoriel/virtualhosts_avec_apache2</em></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.lexik.fr/blog/symfony/ubuntu/virtual-host-sous-ubuntu-192/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<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('p109code4'); return false;">View Code</a> TEXT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p1094"><td class="code" id="p109code4"><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>
