RewriteRule pour reverse proxy non prise en compte
Bonjour,
Je suis ne train d'essayer des interface web pour discuter sur mes salon jabber, mais un détail m'en empêche. Le script a besoin d'une réécriture d'url:
Citation:
First let me explain, what we need to do and why: Due to security
considerations most browsers don't allow JavaScript to access any
data outside the domain it has been loaded from. Gecko based
browsers are even more restrictive in this as they don't allow
them to access data on a different port either.
Pour que le javascript pointe sur une adresse locale si j'ai tout bien compris.
Il est donc indiqué d'écrire une réécriture comme suit:
Code:
1 2 3 4
| <IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule http-poll/ http://jabber.somedomain.com:5280/http-poll/ [P]
</IfModule> |
Ce que j'ai donc fait. Mais l'url ne semble pas interprété (trace firebug):
Code:
http://localhost/http-poll/
Citation:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /http-poll/ was not found on this server.</p>
<hr>
<address>Apache/2.2.14 (Ubuntu) Server at localhost Port 80</address>
</body></html>
Les fichiers .htaccess sont bien pris en compte, et le module de réécriture est activé. Ca vous dit quelque chose ?
=)