Salut Rémi,<div><br></div><div>Le plus propre, plutôt que de faire de la redirection et du mod_rewrite serait de faire du virtualhost.</div><div><br></div><div>Ci dessous la marche à suivre : </div><div>Créer un fichier de conf dans /etc/apache2/site-available/linuxedu qui aurait cette tête (à adapter à ton besoin et tes chemins) : </div>
<div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><VirtualHost *:80><br>
</blockquote><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="Apple-tab-span" style="white-space:pre"> </span>ServerName <a href="http://linuxedu.tetaneutral.net">linuxedu.tetaneutral.net</a> </blockquote>
<blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="Apple-tab-span" style="white-space:pre"> </span>ServerAdmin <a href="mailto:admin@linuxedu.tetaneutral.net">admin@linuxedu.tetaneutral.net</a><br>
<span class="Apple-tab-span" style="white-space:pre"> </span>DocumentRoot /home/linuxeduportail/public_html<br><span class="Apple-tab-span" style="white-space:pre"> </span><Directory /home/linuxeduportail/public_html><br>
<span class="Apple-tab-span" style="white-space:pre"> </span>Options Indexes FollowSymLinks MultiViews<br><span class="Apple-tab-span" style="white-space:pre"> </span>AllowOverride None<br><span class="Apple-tab-span" style="white-space:pre"> </span>Order allow,deny<br>
<span class="Apple-tab-span" style="white-space:pre"> </span>allow from all<br><span class="Apple-tab-span" style="white-space:pre"> </span></Directory><br><span class="Apple-tab-span" style="white-space:pre"> </span>ErrorLog ${APACHE_LOG_DIR}/linuxedu-website-error.log<br>
<span class="Apple-tab-span" style="white-space:pre"> </span># Possible values include: debug, info, notice, warn, error, crit,<br><span class="Apple-tab-span" style="white-space:pre"> </span># alert, emerg.<br><span class="Apple-tab-span" style="white-space:pre"> </span>LogLevel warn<br>
<span class="Apple-tab-span" style="white-space:pre"> </span>CustomLog ${APACHE_LOG_DIR}/linuxedu-website-access.log combined</blockquote><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
</VirtualHost></blockquote><div><br></div><div><br></div><div>Après ça tu active le site </div><div>$ a2ensite linuxedu</div><div><br></div><div>On reload apache</div><div>$ /etc/init.d/apache2 reload</div><div><br>
</div><div>et normalement ça devrait rouler pour toi.</div><div><br></div><div>Plus d'infos : <a href="http://httpd.apache.org/docs/2.2/fr/vhosts/examples.html">http://httpd.apache.org/docs/2.2/fr/vhosts/examples.html</a></div>
<div><br></div><div>See ya</div><div><br></div><div>Caubios</div><div><br></div><div class="gmail_quote">2012/3/7 Rémi Boulle <span dir="ltr"><<a href="mailto:remi.boulle@gmail.com">remi.boulle@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Bonjour,<br>
<br>
Le sous domaine <a href="http://linuxedu.tetaneutral.net" target="_blank">linuxedu.tetaneutral.net</a> pointe vers le répertoire<br>
/var/www (normal)<br>
<br>
Là on a mis une redirection http qui renvoie vers :<br>
<a href="http://linuxedu.tetaneutral.net/~linuxeduportail/" target="_blank">http://linuxedu.tetaneutral.net/~linuxeduportail/</a><br>
<br>
Comment faire pour que cette redirection soit transparente du point de<br>
vue de l'URL, ie que la page :<br>
<a href="http://linuxedu.tetaneutral.net/~linuxeduportail/index.html" target="_blank">http://linuxedu.tetaneutral.net/~linuxeduportail/index.html</a><br>
soit vue dans le navigateur comme :<br>
<a href="http://linuxedu.tetaneutral.net/index.html" target="_blank">http://linuxedu.tetaneutral.net/index.html</a><br>
<br>
Je ne sais pas si j'ai été très clair.<br>
Merci,<br>
++<br>
<span class="HOEnZb"><font color="#888888">Rémi.<br>
--<br>
<br>
_______________________________________________<br>
technique mailing list<br>
<a href="mailto:technique@lists.tetaneutral.net">technique@lists.tetaneutral.net</a><br>
<a href="http://lists.tetaneutral.net/listinfo/technique" target="_blank">http://lists.tetaneutral.net/listinfo/technique</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>------------>>¢aubio$<<--------------<br>|<br>| Etudiant en Master1 informatique<br>| Mèl : caubios [at] <a href="http://wanadoo.fr">wanadoo.fr</a><br>
</div>