<?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; admin</title>
	<atom:link href="http://blog.revolunet.com/index.php/conseil.intranet/reseau/administration/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>Thu, 05 Jan 2012 11:03: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>Google apps tips</title>
		<link>http://blog.revolunet.com/index.php/reseau/administration/google-apps-tips</link>
		<comments>http://blog.revolunet.com/index.php/reseau/administration/google-apps-tips#comments</comments>
		<pubDate>Tue, 10 Aug 2010 10:22:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[admin]]></category>

		<guid isPermaLink="false">http://blog.revolunet.com/?p=425</guid>
		<description><![CDATA[Some google apps setup tips. replace DOMAIN.COM with the domain you suscribed for.
DNS setup
SPF : http://www.google.com/support/a/bin/answer.py?hl=en&#38;answer=33786
MX : http://www.google.com/support/a/bin/answer.py?answer=56217
JABBER SRV records : http://www.google.com/support/a/bin/answer.py?hl=en&#38;answer=34143
Example zone :
@ 28800 IN TXT v=spf1 include:aspmx.googlemail.com a mx include:sfr.fr ~all
@ 28800 IN MX 5 ASPMX2.GOOGLEMAIL.COM.
@ 28800 IN MX 5 ASPMX3.GOOGLEMAIL.COM.
@ 28800 IN MX 3 ALT1.ASPMX.L.GOOGLE.COM.
@ 28800 IN MX 3 ALT2.ASPMX.L.GOOGLE.COM.
@ 28800 IN [...]]]></description>
			<content:encoded><![CDATA[<p>Some google apps setup tips. replace DOMAIN.COM with the domain you suscribed for.</p>
<p><strong><span style="text-decoration: underline;">DNS setup</span></strong></p>
<p>SPF : <a href="http://www.google.com/support/a/bin/answer.py?hl=en&amp;answer=33786" target="_blank">http://www.google.com/support/a/bin/answer.py?hl=en&amp;answer=33786</a><br />
MX : <a href="http://www.google.com/support/a/bin/answer.py?answer=56217" target="_blank">http://www.google.com/support/a/bin/answer.py?answer=56217</a><br />
JABBER SRV records : <a href="http://www.google.com/support/a/bin/answer.py?hl=en&amp;answer=34143" target="_blank">http://www.google.com/support/a/bin/answer.py?hl=en&amp;answer=34143</a></p>
<p><strong>Example zone :</strong></p>
<p>@ 28800 IN TXT v=spf1 include:aspmx.googlemail.com a mx include:sfr.fr ~all<br />
@ 28800 IN MX 5 ASPMX2.GOOGLEMAIL.COM.<br />
@ 28800 IN MX 5 ASPMX3.GOOGLEMAIL.COM.<br />
@ 28800 IN MX 3 ALT1.ASPMX.L.GOOGLE.COM.<br />
@ 28800 IN MX 3 ALT2.ASPMX.L.GOOGLE.COM.<br />
@ 28800 IN MX 1 ASPMX.L.GOOGLE.COM.<br />
_jabber._tcp 28800 IN SRV 5 0 5269 xmpp-server.l.google.com.<br />
_jabber._tcp 28800 IN SRV 20 0 5269 xmpp-server1.l.google.com.<br />
_jabber._tcp 28800 IN SRV 20 0 5269 xmpp-server2.l.google.com.<br />
_jabber._tcp 28800 IN SRV 20 0 5269 xmpp-server3.l.google.com.<br />
_jabber._tcp 28800 IN SRV 20 0 5269 xmpp-server4.l.google.com.<br />
_xmpp-server._tcp 28800 IN SRV 5 0 5269 xmpp-server.l.google.com.<br />
_xmpp-server._tcp 28800 IN SRV 20 0 5269 xmpp-server1.l.google.com.<br />
_xmpp-server._tcp 28800 IN SRV 20 0 5269 xmpp-server2.l.google.com.<br />
_xmpp-server._tcp 28800 IN SRV 20 0 5269 xmpp-server3.l.google.com.<br />
_xmpp-server._tcp 28800 IN SRV 20 0 5269 xmpp-server4.l.google.com.<br />
_xmpp-client._tcp 28800 IN SRV 5 0 5222 talk.l.google.com.<br />
_xmpp-client._tcp 28800 IN SRV 20 0 5222 talk1.l.google.com.<br />
_xmpp-client._tcp 28800 IN SRV 20 0 5222 talk2.l.google.com.<br />
_xmpp-client._tcp 28800 IN SRV 20 0 5222 talk3.l.google.com.<br />
_xmpp-client._tcp 28800 IN SRV 20 0 5222 talk4.l.google.com.</p>
<h2><span style="text-decoration: underline;">Gmail</span></h2>
<p>Config Thunderbird to send/receive use Gapps via IMAP :<br />
<a href="http://www.howtogeek.com/howto/internet/setting-up-gmail-imap-support-in-thunderbird-2x/" target="_blank"> http://www.howtogeek.com/howto/internet/setting-up-gmail-imap-support-in-thunderbird-2x/</a></p>
<h2><span style="text-decoration: underline;">Migration tips  :</span></h2>
<p><span style="color: #ff0000;">Dont change your DNS at first</span></p>
<ol>
<li>Create your gapps account <a href="http://www.google.com/apps/intl/fr/business/index.html" target="_blank">http://www.google.com/apps/intl/fr/business/index.html</a></li>
<li><a href="http://www.google.com/apps/intl/fr/business/index.html" target="_blank"></a>Activate email, gtalk, calendar, sites&#8230;</li>
<li>Manually replicate your actual mail server config (users, forwards, lists&#8230;) into gapps</li>
<li>Test it with the temporary domain</li>
<li>Migrate your DNS zone</li>
<li>Use old and new systems a few days</li>
<li>Breathe !</li>
</ol>
<h2><span style="text-decoration: underline;">Gtalk</span></h2>
<p><strong>Create a chatback badge</strong></p>
<p>gmail : <a href="http://www.google.com/talk/service/badge/New" target="_blank">http://www.google.com/talk/service/badge/New</a><br />
gapps : <a href="http://www.google.com/talk/service/a/DOMAIN.COM/badge/New" target="_blank">http://www.google.com/talk/service/a/DOMAIN.COM/badge/New</a></p>
<p><strong>Gtalk widget (iframe)</strong></p>
<p>gmail : <a href="http://talkgadget.google.com/talkgadget/popout" target="_blank">http://talkgadget.google.com/talkgadget/popout</a><br />
gapps: <a href="http://hostedtalkgadget.google.com/a/DOMAIN.COM/talkgadget/client?" target="_blank">http://hostedtalkgadget.google.com/a/DOMAIN.COM/talkgadget/client?</a></p>
<p><strong>Use a standard jabber client </strong></p>
<p><a href="http://www.google.com/support/a/bin/answer.py?hl=fr&amp;answer=49159" target="_blank">http://www.google.com/support/a/bin/answer.py?hl=fr&amp;answer=49159</a></p>
<p><strong>Your gmail url is : http://mail.google.com/a/DOMAIN.COM </strong><span style="color: #ff0000;"><span style="color: #000000;">and you can create a CNAME mail.DOMAIN.com in your DNS zone that points to </span><em style="font-style: normal;"><span style="color: #000000;">ghs</span></em><span style="color: #000000;">.</span><em style="font-style: normal;"><span style="color: #000000;">gmail</span></em><span style="color: #000000;">.com.</span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.revolunet.com/index.php/reseau/administration/google-apps-tips/feed</wfw:commentRss>
		<slash:comments>0</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>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>32</slash:comments>
		</item>
		<item>
		<title>associer un protocole a un script sous windows</title>
		<link>http://blog.revolunet.com/index.php/general/associer-un-protocole-a-un-script-sous-windows</link>
		<comments>http://blog.revolunet.com/index.php/general/associer-un-protocole-a-un-script-sous-windows#comments</comments>
		<pubDate>Mon, 26 Feb 2007 18:47:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[developpement]]></category>
		<category><![CDATA[geek style]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://blog.revolunet.com/index.php/general/associer-un-protocole-a-un-script-sous-windows</guid>
		<description><![CDATA[Dans une page web, il peut etre assez pratique d&#8217;associer un script ou un programme externe quand on clique sur un lien avec un protocole spécifique. Par exemple un lien href avec comme valeur callto:0102030405 pourrait me permettre d&#8217;executer le dialer de windows en lui demandant de composer un numéro. C&#8217;est très pratique en intranet [...]]]></description>
			<content:encoded><![CDATA[<p>Dans une page web, il peut etre assez pratique d&#8217;associer un script ou un programme externe quand on clique sur un lien avec un protocole spécifique. Par exemple un lien href avec comme valeur callto:0102030405 pourrait me permettre d&#8217;executer le dialer de windows en lui demandant de composer un numéro. C&#8217;est très pratique en intranet par exemple.</p>
<div class="codesnip-container" >&lt;a href=&#8221;callto:00102030405&#8243; mce_href=&#8221;callto:00102030405&#8243;&gt;appeller le 01 02 03 04 05&lt;/a&gt;</div>
<p>(Notez que dans le href il y a un zéro de plus en prefixe qui me permettra de composer un numéro externe)</p>
<p>Il nous suffit pour cela d&#8217;ajouter au registre une petite clé, qui associera le nom de notre &#8216;protocole&#8217; à un programme (faites un fichier .reg puis executez le)</p>
<div class="codesnip-container" >Windows Registry Editor Version 5.00<br />
[HKEY_CLASSES_ROOTcallto]<br />
@=&#8221;tst protocol handler&#8221;<br />
&#8220;URL Protocol&#8221;=&#8221;"<br />
[HKEY_CLASSES_ROOTcalltoshell]<br />
[HKEY_CLASSES_ROOTcalltoshellopen]<br />
[HKEY_CLASSES_ROOTcalltoshellopencommand]<br />
@=&#8221;C:\WINDOWS\system32\wscript.exe &#8220;C:\dial.vbs&#8221; &#8220;%1&#8243;&#8221;</div>
<p>dial.vbs est un petit script qui permet de parser les arguments (ici le numéro) et de les envoyez à dial.exe, petit utilitaire permettant de composer un numéro envoyé en premier paramètre, technique inspirée de <a href="http://www.sugarcrm.com/forums/printthread.php?t=13080" target="_blank">ce post sur le forum de SugarCRM</a>.</p>
<p>Vous pouvez tout autant passer la main à un script Python ou autre qui fera ce que vous lui avez appris a faire avec les arguments. Attention toutefois, le programme sera éxécuté avec les droits de l&#8217;utilisateur actuel donc surement pas admin en entreprise&#8230;</p>
<p>Et voila, des qu&#8217;un utilisateur clique sur un lien callto, le numéro est composé sur le modem. Branchez donc l&#8217;entrée modem de votre telephone a votre PC et c&#8217;est parti pour une numérotation automatisée depuis votre page web !</p>
<p>Skype a son callto:0102030405, Wengo son wengo:usernick et maintenant nous avons aussi nos propres handlers&#8230; Enjoy <img src='http://blog.revolunet.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.revolunet.com/index.php/general/associer-un-protocole-a-un-script-sous-windows/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Squirrelmail lent ?</title>
		<link>http://blog.revolunet.com/index.php/general/squirrelmail-lent</link>
		<comments>http://blog.revolunet.com/index.php/general/squirrelmail-lent#comments</comments>
		<pubDate>Mon, 04 Dec 2006 01:43:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[admin]]></category>

		<guid isPermaLink="false">http://blog.revolunet.com/index.php/general/squirrelmail-lent</guid>
		<description><![CDATA[Si vous trouvez que votre Squirrelmail devient lent avec le temps, verifiez ces 3 paramètres (vers la l.70) dans votre fichier /etc/squirrelmail/config.php. Cela vous permettra de grandement accélerer l&#8217;affichage.
$edit_identity=true;
$allow_thread_sort=true;
$allow_server_sort=true;
]]></description>
			<content:encoded><![CDATA[<p>Si vous trouvez que votre Squirrelmail devient lent avec le temps, verifiez ces 3 paramètres (vers la l.70) dans votre fichier /etc/squirrelmail/config.php. Cela vous permettra de grandement accélerer l&#8217;affichage.</p>
<div class="codesnip-container" >$edit_identity=true;<br />
$allow_thread_sort=true;<br />
$allow_server_sort=true;</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.revolunet.com/index.php/general/squirrelmail-lent/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>de EPS vers JPG en masse</title>
		<link>http://blog.revolunet.com/index.php/general/de-eps-vers-jpg-en-masse</link>
		<comments>http://blog.revolunet.com/index.php/general/de-eps-vers-jpg-en-masse#comments</comments>
		<pubDate>Fri, 06 Oct 2006 11:17:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[developpement]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://blog.revolunet.com/index.php/general/de-eps-vers-jpg-en-masse</guid>
		<description><![CDATA[Ayant eu à convertir plusieurs dizaines de EPS en JPEG, voici un petit exemple de ce qu&#8217;on peut faire grâce à Linux en 2 lignes de commandes.
1- Je mets mes EPS en vrac dans différents répertoire dans un dossier ./eps puis je convertis tous mes eps en jpg grace à ImageMagick et GhostScript :
find ./eps -iname [...]]]></description>
			<content:encoded><![CDATA[<p>Ayant eu à convertir plusieurs dizaines de EPS en JPEG, voici un petit exemple de ce qu&#8217;on peut faire grâce à Linux en 2 lignes de commandes.</p>
<p>1- Je mets mes EPS en vrac dans différents répertoire dans un dossier ./eps puis je convertis tous mes eps en jpg grace à ImageMagick et GhostScript :</p>
<div class="codesnip-container" >find ./eps -iname *.eps -exec convert -density 300 &#8220;{}&#8221; &#8220;{}.jpg&#8221; ;</div>
<p>2- je récuperes tous les fichiers jpg crées et les mets dans un dossier ./jpg :</p>
<div class="codesnip-container" >find ./eps -iname *.jpg -exec cp&#8221;{}&#8221; ./jpg/ ;<br />
# j&#8217;efface les eps<br />
rm -rf ./eps</div>
<p>Et voila, en quelques minutes, ma machine m&#8217;a converti toutes mes images <img src='http://blog.revolunet.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  </p>
<p>NB :</p>
<ul>
<li>-density 300 permet d&#8217;avoir une résolution de 300dpi (mettre 72 pour le web)</li>
<li>vous pouvez ajouter -size 300 pour forcer un redimensionnement de toutes les images à 300px de large</li>
</ul>
<p>> toutes les options de la ligne de commande ici : <a href="http://www.imagemagick.org/script/command-line-options.php">http://www.imagemagick.org/script/command-line-options.php</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.revolunet.com/index.php/general/de-eps-vers-jpg-en-masse/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SquirrelMail en Francais sur une dedibox Debian</title>
		<link>http://blog.revolunet.com/index.php/general/squirrelmail-en-francais-sur-une-dedibox-debian</link>
		<comments>http://blog.revolunet.com/index.php/general/squirrelmail-en-francais-sur-une-dedibox-debian#comments</comments>
		<pubDate>Thu, 24 Aug 2006 14:22:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[geek style]]></category>
		<category><![CDATA[réseau]]></category>

		<guid isPermaLink="false">http://blog.revolunet.com/index.php/general/squirrelmail-en-francais-sur-une-dedibox-debian</guid>
		<description><![CDATA[Par défaut, la traduction Francaise de SquirrelMail ne marche pas sur la dédibox car la locale installée n&#8217;est pas fr_FR mais fr_FR@euro (à juste titre). Il faut donc faire la petite manip suivante pour activer le Francais :
dans le fichier /usr/share/squirrelmail/functions/i18n.php modifier :
remplacer $languages['fr_FR']['LOCALE'] = &#8216;fr_FR&#8217;; par $languages['fr_FR']['LOCALE'] = &#8216;fr_FR@euro&#8217;;
et mettre le Francais comme langue [...]]]></description>
			<content:encoded><![CDATA[<p>Par défaut, la traduction Francaise de SquirrelMail ne marche pas sur la dédibox car la locale installée n&#8217;est pas fr_FR mais fr_FR@euro (à juste titre). Il faut donc faire la petite manip suivante pour activer le Francais :</p>
<p>dans le fichier<em> /usr/share/squirrelmail/functions/i18n.php</em> modifier :</p>
<p>remplacer $languages['fr_FR']['LOCALE'] = &#8216;fr_FR&#8217;; par $languages['fr_FR']['LOCALE'] = &#8216;fr_FR@euro&#8217;;</p>
<p>et mettre le Francais comme langue par défaut en lancant la configuration de SquirrelMail avec un : squirrelmail-configure. Choisir en suite 10 puis saisir &#8220;fr_FR@euro&#8221; dans &#8220;Default Language&#8221;</p>
<p>un petit refresh et ca marche <img src='http://blog.revolunet.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>si quelqu&#8217;un a un autre moyen, par exemple en mettant un alias de fr_FR vers fr_FR@euro , je suis preneur <img src='http://blog.revolunet.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.revolunet.com/index.php/general/squirrelmail-en-francais-sur-une-dedibox-debian/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

