Last modified 3 years ago
Notes Wowhead
L'intégration de wowhead nécessite la mise en place d'un reverse proxy pour outrepasser les restrictions de javascript sur le XSS.
Il faut activer les modules :
- ext_filter
- proxy_html
- proxy_http
- headers
(proxy_html est fourni par le paquet libapache2-mod-proxy-html sur debian)
Config apache :
ProxyRequests Off
ProxyPass /wowhead http://www.wowhead.com/
ProxyPassReverse /wowhead http://www.wowhead.com/
# Les recherches réussies redirigent vers '/', on ajoute cette règle pour ne pas sortir de /wowhead
ProxyPassReverse /wowhead /
ProxyPass /static-wowhead http://static.wowhead.com/
ProxyPassReverse /static-wowhead http://static.wowhead.com/
ExtFilterDefine filter_get mode=output cmd="/bin/sed 's/\\/?/\\/wowhead\\/?/g'"
<Location /wowhead>
allow from all
SetOutputFilter proxy-html
ProxyHTMLLogVerbose On
ProxyHTMLExtended On
ProxyHTMLBufSize 16384
ProxyHTMLURLMap http://static.wowhead.com /static-wowhead
ProxyHTMLURLMap url(http://static.wowhead.com url(/static-wowhead
ProxyHTMLURLMap / /wowhead/ c
# otherwise the server sends in that encoding => big mess
RequestHeader unset Accept-Encoding
</Location>
<Location /static-wowhead>
allow from all
</Location>
<Proxy http://static.wowhead.com/*.js>
SetOutputFilter filter_get
RequestHeader unset Accept-Encoding
</Proxy>
