<?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 ntic de revolunet &#187; réseau</title>
	<atom:link href="http://blog.revolunet.com/index.php/conseil.intranet/reseau/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.revolunet.com</link>
	<description>Blog des Nouvelles Technologies de l'Information et de la Communication</description>
	<lastBuildDate>Tue, 22 Jun 2010 07:59:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>VLC 0.8.6e est sorti</title>
		<link>http://blog.revolunet.com/index.php/actu-informatique/vlc-086e-est-sorti</link>
		<comments>http://blog.revolunet.com/index.php/actu-informatique/vlc-086e-est-sorti#comments</comments>
		<pubDate>Thu, 28 Feb 2008 11:02:57 +0000</pubDate>
		<dc:creator>Juju</dc:creator>
				<category><![CDATA[VLC]]></category>
		<category><![CDATA[actu informatique]]></category>
		<category><![CDATA[developpement]]></category>
		<category><![CDATA[hack]]></category>

		<guid isPermaLink="false">http://blog.revolunet.com/index.php/actu-informatique/vlc-086e-est-sorti</guid>
		<description><![CDATA[Une nouvelle version de VLC est disponible sur le site de videolan.org.
Cette mise a jour corrige plusieurs failles de sécurité importantes, et corrige également des bugs dans l&#8217;encodage h264. Vous allez donc enfin pouvoir encoder en mpeg-4 sous windows pour, entre autre, votre iPhone  
Le changelog complet ici : http://trac.videolan.org/vlc/browser/tags/0.8.6e/NEWS
Mettez vite a jour pour [...]]]></description>
			<content:encoded><![CDATA[<p>Une nouvelle version de VLC est disponible sur le site de <a target="_blank" href="http://www.videolan.org/vlc/">videolan.org</a>.</p>
<p>Cette mise a jour corrige plusieurs failles de sécurité importantes, et corrige également des bugs dans l&#8217;encodage h264. Vous allez donc enfin pouvoir encoder en mpeg-4 sous windows pour, entre autre, votre iPhone <img src='http://blog.revolunet.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Le changelog complet ici : <a href="http://trac.videolan.org/vlc/browser/tags/0.8.6e/NEWS">http://trac.videolan.org/vlc/browser/tags/0.8.6e/NEWS</a></p>
<p>Mettez vite a jour pour éviter tout probleme de sécurité. Merci à la <a target="_blank" href="http://wiki.videolan.org/VideoLAN_Team">team VLC</a> !</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.revolunet.com/index.php/actu-informatique/vlc-086e-est-sorti/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>upgrade sécurité dedibox</title>
		<link>http://blog.revolunet.com/index.php/general/upgrade-securite-dedibox</link>
		<comments>http://blog.revolunet.com/index.php/general/upgrade-securite-dedibox#comments</comments>
		<pubDate>Fri, 15 Feb 2008 18:54:08 +0000</pubDate>
		<dc:creator>Juju</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[actu informatique]]></category>
		<category><![CDATA[hack]]></category>

		<guid isPermaLink="false">http://blog.revolunet.com/index.php/general/upgrade-securite-dedibox</guid>
		<description><![CDATA[Comme beaucoup d&#8217;admins qui se pensent contienteux, j&#8217;ai du, suite à la publication d&#8217;un exploit local assez impressionnant la semaine derniere, mettre à jour mes debian pour éviter toute prise de contrôle. Cette faille afffecte tous les kernels linux 2.6.17 à 2.6.24.1 soit un très très grand nombre de systemes. Il suffit à l&#8217;attaquant d&#8217;une [...]]]></description>
			<content:encoded><![CDATA[<p>Comme beaucoup d&#8217;admins qui se pensent contienteux, j&#8217;ai du, suite à la <a href="http://www.milw0rm.com/exploits/5092">publication d&#8217;un exploit local assez impressionnant</a> la semaine derniere, mettre à jour mes debian pour éviter toute prise de contrôle. Cette faille afffecte tous les kernels linux 2.6.17 à 2.6.24.1 soit un très très grand nombre de systemes. Il suffit à l&#8217;attaquant d&#8217;une petite faille PHP pour prendre le controle TOTAL de la machine.</p>
<p>Voici une procédure simplifiée que j&#8217;ai suivie sur une debian avec un kernel dedibox r5 :</p>
<p>* <b>apt-get update &#038;&#038; apt-get upgrade</b> : mettre a jour les packages pour le nouveau noyau. Attention, cette étape peut vous forcer à passer à MySQL5 et PHP5</p>
<p>* <b>installation du nouveau kernel : </b> apt-get install linux-image-2.6.18-6-686</p>
<p>* <b>reboot</b> puis <b>uname -r</b> pour voir si tout va bien : Linux xx_xx 2.6.18-6-686</p>
<p>Si votre machine ne redemarre pas, essayez un reboot materiel via la console et au pire, bootez sur le system de secours pour modifier /boot/grub/menu.lst et remettre votre ancien noyau (parametre &#8216;default&#8217;).</p>
<p><strong>Ce patch est indispensable </strong>sinon tot ou tard votre systeme sera compromis.</p>
<p>Pour ceux qui souhaiterait installer leur propre kernel et le patcher, suivez le tuto de drax sur son (excellent) blog : <a href="http://sweon.net/2008/02/vmsplice-exploit-fix-and-patching-on-debian">vmsplice-exploit-fix-and-patching-on-debian</a> et pour les plus curieux, plus de détails techniques sur cette faille : <a href="http://www.isec.pl/vulnerabilities/isec-0026-vmsplice_to_kernel.txt">http://www.isec.pl/vulnerabilities/isec-0026-vmsplice_to_kernel.txt</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.revolunet.com/index.php/general/upgrade-securite-dedibox/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Getting SuExec and TRAC to play nice</title>
		<link>http://blog.revolunet.com/index.php/reseau/administration/getting-suexec-and-trac-to-play-nice</link>
		<comments>http://blog.revolunet.com/index.php/reseau/administration/getting-suexec-and-trac-to-play-nice#comments</comments>
		<pubDate>Tue, 12 Feb 2008 00:31:35 +0000</pubDate>
		<dc:creator>drax</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[trac]]></category>

		<guid isPermaLink="false">http://sweon.net/2008/02/getting-suexec-and-trac-to-play-nice</guid>
		<description><![CDATA[
EnvironmentError: The environment options "TRAC_ENV" or "TRAC_ENV_PARENT_DIR"
or the mod_python options "TracEnv" or "TracEnvParentDir" are missing.
Yuck. What&#8217;s more, if you&#8217;re using SuExec (like I am) then your Apache directives are ignored.

Solution: Edit your trac.fcgi and prepend the following code.

# hack for SuExec
import os;
os.environ['TRAC_ENV_PARENT_DIR'] = '/var/lib/trac'

]]></description>
			<content:encoded><![CDATA[<pre>
EnvironmentError: The environment options "TRAC_ENV" or "TRAC_ENV_PARENT_DIR"
or the mod_python options "TracEnv" or "TracEnvParentDir" are missing.</pre>
<p>Yuck. What&#8217;s more, if you&#8217;re using SuExec (like I am) then your Apache directives are ignored.</p>
<p>
Solution: Edit your trac.fcgi and prepend the following code.</p>
<pre language="perl" line="1">
# hack for SuExec
import os;
os.environ['TRAC_ENV_PARENT_DIR'] = '/var/lib/trac'
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.revolunet.com/index.php/reseau/administration/getting-suexec-and-trac-to-play-nice/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>vmsplice exploit fix and patching on Debian</title>
		<link>http://blog.revolunet.com/index.php/reseau/administration/vmsplice-exploit-fix-and-patching-on-debian</link>
		<comments>http://blog.revolunet.com/index.php/reseau/administration/vmsplice-exploit-fix-and-patching-on-debian#comments</comments>
		<pubDate>Mon, 11 Feb 2008 18:00:06 +0000</pubDate>
		<dc:creator>drax</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[exploitation]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[debian]]></category>

		<guid isPermaLink="false">http://sweon.net/2008/02/vmsplice-exploit-fix-and-patching-on-debian</guid>
		<description><![CDATA[Some vulnerabilities in the Linux kernel where publicly disclosed on the 8th of February 2008. These can be exploited by any user to gain elevated privileges. A &#8220;local root&#8221; exploit was published Sunday which allows an arbitrary user to escalate to root privileges.
Affected versions: >= 2.6.17
Fixed in version: 2.6.24.2

Fix
You can download the vmsplice patch locally [...]]]></description>
			<content:encoded><![CDATA[<p>Some vulnerabilities in the Linux kernel where publicly disclosed on the 8th of February 2008. These can be exploited by any user to gain elevated privileges. A &#8220;local root&#8221; exploit was published Sunday which allows an arbitrary user to escalate to root privileges.</p>
<p>Affected versions: >= 2.6.17<br />
Fixed in version: 2.6.24.2<br />
<span id="more-320"></span></p>
<h3>Fix</h3>
<p>You can download the <a href='/wp-content/uploads/2008/02/vmsplice.patch' title='vmsplice.patch'>vmsplice patch</a> locally or from the official LKML thread: <a href="http://lkml.org/lkml/2008/2/11/25">[PATCH] vmsplice exploit fix</a></p>
<h3>Patching on Debian Etch</h3>
<p><span class="pupdate" style="color: red"><strong>Update 12/02/08: </strong></span>Debian repositories have been updated and contain patched kernels. If you&#8217;re using a stock kernel, the following two commands should sort you out (providing you reboot afterwards).</p>
<pre line="1" lang="bash">
aptitude update
aptitude upgrade
</pre>
<h4>Install kernel sources</h4>
<pre line="1" lang="bash">
export KVER=`uname -r`
aptitude update
aptitude install linux-source-${KVER}
cd /usr/src
tar -xjf linux-source-${KVER}.tar.bz2
ln -s linux-source-${KVER} linux
cd linux
</pre>
<h4>Patch kernel sources</h4>
<pre line="1" lang="bash">
patch < vmsplice.patch -p1
</pre>
<h4>Compile kernel and install</h4>
<p>You'll want to copy your existing kernel configuration.</p>
<pre line="1" lang="bash">
cp /boot/config-${KVER} .config
make-kpkg clean
make-kpkg --initrd --append-to-version=-mykernelname kernel_image
cd ..
dpkg -i linux-image-${KVER}-mykernelname_${KVER}-mykernelname-10.00.Custom_i386.deb
reboot
</pre>
<h4>References</h4>
<ul>
<li><a href="http://www.isec.pl/vulnerabilities/isec-0026-vmsplice_to_kernel.txt">http://www.isec.pl/vulnerabilities/isec-0026-vmsplice_to_kernel.txt</a>
<li><a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=465246">http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=465246</a>
<li><a href="http://milw0rm.com/exploits/5092">http://milw0rm.com/exploits/5092</a>
<li><a href="http://milw0rm.com/exploits/5093">http://milw0rm.com/exploits/5093</a>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.revolunet.com/index.php/reseau/administration/vmsplice-exploit-fix-and-patching-on-debian/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Encrypted filesystem on OS X, Linux and Windows</title>
		<link>http://blog.revolunet.com/index.php/reseau/administration/encrypted-filesystem-on-os-x-linux-and-windows</link>
		<comments>http://blog.revolunet.com/index.php/reseau/administration/encrypted-filesystem-on-os-x-linux-and-windows#comments</comments>
		<pubDate>Sat, 02 Feb 2008 18:08:56 +0000</pubDate>
		<dc:creator>drax</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[truecrypt]]></category>

		<guid isPermaLink="false">http://sweon.net/2008/02/encrypted-filesystem-on-os-x-linux-and-windows</guid>
		<description><![CDATA[


Finally we have a truly portable, open source, encrypted filesystem. I&#8217;ve tested a fair share of encrypted filesystem solutions. The most promising probably being encfs since it could be used with Fuse, but that only works on OS X and Linux at best.

TrueCrypt, probably the best solution available, was only working on Linux and Windows&#8230; [...]]]></description>
			<content:encoded><![CDATA[<p><a href='http://sweon.net/wp-content/uploads/2008/02/truecrypt_windows.png' title='truecrypt_windows.png'><img src='http://blog.revolunet.com/wp-content/uploads/2008/02/truecrypt_windows.png' alt='truecrypt_windows.png' /></a><br />
<a href='http://sweon.net/wp-content/uploads/2008/02/truecrypt_osx.png' title='truecrypt_osx.png'><img rel=”lightbox” src='http://blog.revolunet.com/wp-content/uploads/2008/02/truecrypt_osx.png' alt='truecrypt_osx.png' /></a><br />
<a href='http://sweon.net/wp-content/uploads/2008/02/truecrypt_linux.png' title='truecrypt_linux.png'><img src='http://blog.revolunet.com/wp-content/uploads/2008/02/truecrypt_linux.png' alt='truecrypt_linux.png' /></a><br />
Finally we have a truly portable, open source, encrypted filesystem. I&#8217;ve tested a fair share of encrypted filesystem solutions. The most promising probably being encfs since it could be used with Fuse, but that only works on OS X and Linux at best.</p>
<p>
TrueCrypt, probably the best solution available, was only working on Linux and Windows&#8230; up to now.<br />
<span id="more-319"></span><br />
Some dude got impatient for the OS X port, managed to make a deal with a developper to code it for 1500$, raised those 1500$ and BAM! Bob&#8217;s you&#8217;re uncle.</p>
<p>
The software is labelled alpha, described as beta, and used in production&#8230; w00t. Jokes aside, it&#8217;s been released for a few weeks now and no serious data-destroying bug stories have arose. Nevertheless, you might want to backup to another more trusted encrypted disk somewhere, every now and then.</p>
<p>
Bare in mind the TrueCrypt team annouce their 5.0 release for the 4th of Febuary 2008 (that&#8217;s in 2 days) and claim OS X support. Watch this space&#8230;</p>
<p>
Still interested? Download the software here:</p>
<ul>
<li><a href="http://www.osxcrypt.org/download/">TrueCrypt for OS X</a></li>
<li><a href="http://www.truecrypt.org/downloads.php">TrueCrypt for Linux and Windows</a></li>
</ul>
<p><span style="color:red">OS X notes:</span></p>
<ul>
<li>Your encrypted filesystem image should have a .img extension.</li>
<li>When mounting a hidden volume, you&#8217;ll be asked the outer volume password, then the hidden volume password.</li>
<li>Unmounting in finder <b>does not</b> dismount the image. It&#8217;s a known bug. Use ocutil -detach.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.revolunet.com/index.php/reseau/administration/encrypted-filesystem-on-os-x-linux-and-windows/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>FireFox sous les bombes</title>
		<link>http://blog.revolunet.com/index.php/general/firefox-sous-les-bombes</link>
		<comments>http://blog.revolunet.com/index.php/general/firefox-sous-les-bombes#comments</comments>
		<pubDate>Thu, 31 Jan 2008 09:09:42 +0000</pubDate>
		<dc:creator>Juju</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[actu informatique]]></category>
		<category><![CDATA[hack]]></category>

		<guid isPermaLink="false">http://blog.revolunet.com/index.php/general/firefox-sous-les-bombes</guid>
		<description><![CDATA[Petit post trollesque&#8230; Depuis la découverte il y a quelques jours d&#8217;une faille plutot critique dans FireFox par hiredhacker.com, la fondation a tenté de corriger ce vilain bug qui permettait d&#8217;exposer tous les fichiers d&#8217;une machine à nimporte quel attaquant (/etc/passwd ?). Certes, le PC cible doit avoir certaines extensions installées pour que l&#8217;exploit fonctionne, [...]]]></description>
			<content:encoded><![CDATA[<p>Petit post trollesque&#8230; Depuis la découverte il y a quelques jours d&#8217;une faille plutot critique dans FireFox par <a target="_blank" href="http://www.hiredhacker.com/">hiredhacker.com</a>, la fondation a tenté de corriger ce vilain bug qui permettait d&#8217;exposer tous les fichiers d&#8217;une machine à nimporte quel attaquant (/etc/passwd ?). Certes, le PC cible doit avoir certaines extensions installées pour que l&#8217;exploit fonctionne, mais quand meme, ce bug pourrait faire des dizaines de milliers de victimes potentielles. Et bien la fondation Mozilla a depuis sorti un patch, mais il se trouve qu&#8217;il n&#8217;empeche rien du tout <img src='http://blog.revolunet.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  LOL <a href="http://www.hiredhacker.com/2008/01/31/more-chrome-directory-traversing/">http://www.hiredhacker.com/2008/01/31/more-chrome-directory-traversing/</a></p>
<p>Seule solution pour se protégér : utiliser NoScript, ou, mieux, passer sous Lynx <img src='http://blog.revolunet.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>La (longue) liste des plugins permettant cette exploitation : <a href="https://bugzilla.mozilla.org/attachment.cgi?id=300181">https://bugzilla.mozilla.org/attachment.cgi?id=300181</a></p>
<p>Ca me rappelle le bug affectant FireBug <img src='http://blog.revolunet.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />   <a href="http://www.frsirt.com/bulletins/9835">http://www.frsirt.com/bulletins/9835</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.revolunet.com/index.php/general/firefox-sous-les-bombes/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Keyboard shortcuts during OS X boot sequence</title>
		<link>http://blog.revolunet.com/index.php/reseau/administration/startup-key-combinations-for-intel-based-macs</link>
		<comments>http://blog.revolunet.com/index.php/reseau/administration/startup-key-combinations-for-intel-based-macs#comments</comments>
		<pubDate>Wed, 30 Jan 2008 11:46:59 +0000</pubDate>
		<dc:creator>drax</dc:creator>
				<category><![CDATA[admin]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://sweon.net/2008/01/startup-key-combinations-for-intel-based-macs</guid>
		<description><![CDATA[Here is a list of keyboard shortcuts or hotkeys available during the boot sequence of OS X on Intel based macs although some shortcuts also work on PPC.Shamelessly ripped off apple&#8217;s documentation article:Startup key combinations for Intel-based Macs.


Keystroke
Description


Press C during startup
Start up from a bootable CD or DVD, such as the Mac OS X Install [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a list of keyboard shortcuts or hotkeys available during the boot sequence of OS X on Intel based macs although some shortcuts also work on PPC.<br/>Shamelessly ripped off apple&#8217;s documentation article:<br/><a href="http://docs.info.apple.com/article.html?artnum=303124">Startup key combinations for Intel-based Macs</a>.<br />
<table class="sweontbl"width="498" border="0" cellpadding="0" cellspacing="0">
<tr>
<th>Keystroke</th>
<th>Description</th>
</tr>
<tr id="odd">
<td>Press C during startup</td>
<td>Start up from a bootable CD or DVD, such as the Mac OS X Install disc that came with the computer. </td>
</tr>
<tr id="even">
<td>Press D during startup</td>
<td>Start up in Apple Hardware Test (AHT), if the Install DVD 1 is in the computer. </td>
</tr>
<tr id="odd">
<td>Press Option-Command-P-R until you hear two beeps. </td>
<td>Reset NVRAM </td>
</tr>
<tr id="even">
<td>Press Option during startup </td>
<td>Starts into Startup Manager, where you can select a Mac OS X volume to start from. <b>Note</b>: Press N to make the the first bootable Network volume appear as well. </td>
</tr>
<tr id="odd">
<td>Press Eject, F12, or hold the mouse (/trackpad) button </td>
<td>Ejects any removable media, such as an optical disc. </td>
</tr>
<tr id="even">
<td>Press N during startup</td>
<td>Attempt to start up from a compatible network server (NetBoot).</td>
</tr>
<tr id="odd">
<td>Press T during startup</td>
<td>Start up in FireWire Target Disk mode.</td>
</tr>
<tr id="even">
<td>Press Shift during startup</td>
<td>Start up in Safe Boot mode and temporarily disable login items. </td>
</tr>
<tr id="odd">
<td>Press Command-V during startup</td>
<td>Start up in Verbose mode.</td>
</tr>
<tr id="even">
<td>Press Command-S during startup</td>
<td>Start up in Single-User mode.</td>
</tr>
<tr id="odd">
<td>Press Option-N during startup </td>
<td>Start from a NetBoot server using the default boot image. </td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://blog.revolunet.com/index.php/reseau/administration/startup-key-combinations-for-intel-based-macs/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hosting multiple SSL vhosts on a single IP/Port/Certificate with Apache2</title>
		<link>http://blog.revolunet.com/index.php/reseau/administration/hosting-multiple-ssl-vhosts-on-a-single-ipportcertificate-with-apache2</link>
		<comments>http://blog.revolunet.com/index.php/reseau/administration/hosting-multiple-ssl-vhosts-on-a-single-ipportcertificate-with-apache2#comments</comments>
		<pubDate>Thu, 24 Jan 2008 13:07:54 +0000</pubDate>
		<dc:creator>drax</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[ssl]]></category>
		<category><![CDATA[vhosts]]></category>

		<guid isPermaLink="false">http://sweon.net/2008/01/hosting-multiple-ssl-vhosts-on-a-single-ipportcertificate-with-apache2</guid>
		<description><![CDATA[But that&#8217;s impossible!!
HTTPS is just HTTP encapsulated inside an SSL tunnel. Apache&#8217;s virtual hosts are a clever &#8220;hack&#8221; whereby the Host header in the HTTP packet is verified. This alllows a single apache instance on a single IP/Port combination to serve a (not so) infinite number of differentes sites (aka vhosts).
Problem: The SSL tunnel is [...]]]></description>
			<content:encoded><![CDATA[<h3>But that&#8217;s impossible!!</h3>
<p>HTTPS is just HTTP encapsulated inside an SSL tunnel. Apache&#8217;s virtual hosts are a clever &#8220;hack&#8221; whereby the Host header in the HTTP packet is verified. This alllows a single apache instance on a single IP/Port combination to serve a (not so) infinite number of differentes sites (aka vhosts).</p>
<p>Problem: The SSL tunnel is created <span style="font-weight: bold" class="Apple-style-span">before</span> the first HTTP packet gets sent. Apache needs an SSL certificate but doesn&#8217;t have a Host header to match, hence cannot choose a virtual host.</p>
<h3>Solution</h3>
<p>This trick essentially does the matching of the Host header <span class="Apple-style-span" style="font-weight: bold">after</span> the SSL connection has been established. How? Via some mod_rewrite magic!<br />
<h3>Caveats</h3>
<p>Although I said so, it&#8217;s not really that magical. There are a few things this trick does not solve.
<ul>
<li>The SSL certificate used will be common to all SSL vhosts.</li>
<li>Certain Apache directives may be common to all SSL vhosts (example: SuExecUserGroup). Basically anything you can&#8217;t override in a .htaccess file will be shared amongst vhosts.</li>
</ul>
<p><span id="more-316"></span></p>
<h3>The trick</h3>
<p>The process is only 2 steps and involves modifying your Apache configuration. I assume you have a working SSL vhost configured.</p>
<ol>
<li>Create virtual hosts &#8220;map file&#8221;.</li>
<li>Modify existing SSL vhost.</li>
</ol>
<h4>1. The virtual hosts map file</h4>
<p>Create a new file in your Apache server root. Example:<span class="path">/etc/apache2/ssl.map</span><br/><br />
Write a list of virtual hosts and their respective <tt>DocumentRoot</tt>. Example:</p>
<pre>
foo.example.com        /var/www/foo.example.com/
bar.example.com        /var/www/bar.example.com/
# you can even put comments!
# Alias to bar
boar.example.com        /var/www/bar.example.com/
</pre>
<p/>
<h4>2. Edit your SSL vhost</h4>
<p>Open your Apache config, inside the &lt;VirtualHost&gt; section of your SSL vhost, include the following code or include this file: <a href='http://blog.revolunet.com/wp-content/uploads/2008/01/mass_ssl_vhosts.conf' title='Mass SSL vhosts'>Mass SSL vhosts Apache config</a>.</p>
<p>
<span class="Apple-style-span" style="font-weight: bold;color:red;">Important:</span> Make sure to edit line 8 to include the correct path to your <tt>ssl.map</tt> file.</p>
<pre line="1" lang="perl">### Mass SSL Vhosts ###
RewriteEngine on

#   define two maps: one for fixing the URL and one which defines
#   the available virtual hosts with their corresponding
#   DocumentRoot.
RewriteMap    lowercase    int:tolower
RewriteMap    vhost        txt:/etc/apache2/ssl.map

#   1. make sure we don't map for common locations
RewriteCond   %{REQUEST_URI}  !^/cgi-bin/.*
RewriteCond   %{REQUEST_URI}  !^/icons/.*

#   2. make sure we have a Host header
RewriteCond   %{HTTP_HOST}  !^$

#   3. lowercase the hostname
RewriteCond   ${lowercase:%{HTTP_HOST}|NONE}  ^(.+)$
#
#   4. lookup this hostname in vhost.map and
#      remember it only when it is a path
#      (and not "NONE" from above)
RewriteCond   ${vhost:%1}  ^(/.*)$

#   5. finally we can map the URL to its docroot location
#      and remember the virtual host for logging puposes
RewriteRule   ^/(.*)$   %1/$1  [E=VHOST:${lowercase:%{HTTP_HOST}}]</pre>
<p>Restart Apache and you&#8217;re done. You should be able to browse (in https) the vhosts you added to your <tt>ssl.map</tt> file.<br/><br />
<b>Grandma says: </b>You don&#8217;t need to reload Apache when you edit your map file. Just create the document root folder on the filesystem, add a new entry to your map and you&#8217;re good to go.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.revolunet.com/index.php/reseau/administration/hosting-multiple-ssl-vhosts-on-a-single-ipportcertificate-with-apache2/feed</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
		<item>
		<title>Blocage surprise du smtp sortant chez wanadoo</title>
		<link>http://blog.revolunet.com/index.php/general/blocage-smtp-sortant-chez-wanadoo</link>
		<comments>http://blog.revolunet.com/index.php/general/blocage-smtp-sortant-chez-wanadoo#comments</comments>
		<pubDate>Thu, 28 Jun 2007 08:50:22 +0000</pubDate>
		<dc:creator>Juju</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[actu informatique]]></category>
		<category><![CDATA[réseau]]></category>

		<guid isPermaLink="false">http://blog.revolunet.com/index.php/general/blocage-smtp-sortant-chez-wanadoo</guid>
		<description><![CDATA[Nos chers amis de Wanadoo ont apparemment décidé, à l&#8217;instar de Free il y a quelques semaines, de bloquer le SMTP sortant sur d&#8217;autres serveurs que smtp.wanadoo.fr. Seul probleme, ils ont oublié de prévenir leurs clients quand Free nous avait bien prévenu à l&#8217;avance avec un joli mail et des posts sur les newsgroups !
Panique à [...]]]></description>
			<content:encoded><![CDATA[<p>Nos chers amis de Wanadoo ont apparemment décidé, à l&#8217;instar de Free il y a quelques semaines, de bloquer le SMTP sortant sur d&#8217;autres serveurs que smtp.wanadoo.fr. Seul probleme, ils ont oublié de prévenir leurs clients quand Free nous avait bien prévenu à l&#8217;avance avec un joli mail et des posts sur les newsgroups !</p>
<p>Panique à bord ce matin dans de nombreuses entreprises qui utilisent leur smtp perso !  Et bien sur la hotline est submergée et on vous raccroche gentillement au nez;(</p>
<p>Switchez donc sur smtp.wanadoo.fr le temps de pouvoir désactiver ce vilain bridage.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.revolunet.com/index.php/general/blocage-smtp-sortant-chez-wanadoo/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Protected: Google Earth depuis le Maroc aussi !</title>
		<link>http://blog.revolunet.com/index.php/general/google-earth-depuis-le-maroc-aussi</link>
		<comments>http://blog.revolunet.com/index.php/general/google-earth-depuis-le-maroc-aussi#comments</comments>
		<pubDate>Wed, 21 Mar 2007 15:15:24 +0000</pubDate>
		<dc:creator>Juju</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[hack]]></category>

		<guid isPermaLink="false">http://blog.revolunet.com/index.php/general/google-earth-depuis-le-maroc-aussi</guid>
		<description><![CDATA[There is no excerpt because this is a protected post.]]></description>
			<content:encoded><![CDATA[<form action="http://blog.revolunet.com/wp-pass.php" method="post">
<p>This post is password protected. To view it please enter your password below:</p>
<p><label for="pwbox-235">Password:<br />
<input name="post_password" id="pwbox-235" type="password" size="20" /></label><br />
<input type="submit" name="Submit" value="Submit" /></p></form>
]]></content:encoded>
			<wfw:commentRss>http://blog.revolunet.com/index.php/general/google-earth-depuis-le-maroc-aussi/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
