<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <pre>Hello!</pre>
    <pre>
I need you help...</pre>
    <pre>
I'm using nginx for two years without having any problems.</pre>
    <pre>I want to create sub-domains on a website and I have to rewrite the urls with the "substitutions4nginx" module.
Since the installation of this module and it's configuration I'm having problems.

The problem is:

After some time, one or many worker process are at 100% even if there is not more connections on the website as there is usually.
I have to restart nginx to have it working properly.

I think that my configuaration is not correct... In my configuration I would like define that there is no url rewriting when there is a cookie.



NGINX Version:
====================

/usr/sbin/nginx -V
nginx version: nginx/0.7.67
built by gcc 4.3.2 (Debian 4.3.2-1.1)
TLS SNI support enabled
configure arguments: --prefix=/usr --user=www-data --group=www-data
--conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error_log
--pid-path=/var/run/nginx.pid --lock-path=/var/lock/nginx.lock
--http-log-path=/var/log/nginx/access_log --http-client-body-temp-path=/var/lib/nginx/body
--http-proxy-temp-path=/var/lib/nginx/proxy --http-fastcgi-temp-path=/var/lib/nginx/fastcgi
--with-http_dav_module --with-http_realip_module --with-http_ssl_module
--with-http_stub_status_module --with-debug --add-module=/root/substitutions4nginx

error.log
====================

2010/09/02 11:46:35 [debug] 16331#0: *1 event timer del: 14: 1283420858304 2010/09/02 11:46:35
[debug] 16331#0: *1 generic phase: 0
2010/09/02 11:46:35 [debug] 16331#0: *1 add cleanup: 00000000006D4648 2010/09/02 11:46:35
[debug] 16331#0: *1 generic phase: 1
2010/09/02 11:46:35 [debug] 16331#0: *1 http script var
2010/09/02 11:46:35 [debug] 16331#0: *1 http script var: "<a class="moz-txt-link-abbreviated" href="http://www.hopla-net.com">www.hopla-net.com</a>" 2010/09/02
11:46:35 [debug] 16331#0: *1 http script regex: "^hopla-net\.com$" 2010/09/02 11:46:35
[notice] 16331#0: *1 "^hopla-net\.com$" does not match "<a class="moz-txt-link-abbreviated" href="http://www.hopla-net.com">www.hopla-net.com</a>", client: 127.0.0.1,
server: <a class="moz-txt-link-abbreviated" href="http://www.hopla-net.com">www.hopla-net.com</a>, reque$ 2010/09/02 11:46:35 [debug] 16331#0: *1 http script if
2010/09/02 11:46:35 [debug] 16331#0: *1 http script if: false
2010/09/02 11:46:35 [debug] 16331#0: *1 http script regex: "^/bale(.*)" 2010/09/02 11:46:35
[notice] 16331#0: *1 "^/bale(.*)" does not match
"/alsace/artistes/peintres/lucienne-aman-aquarelle-ou-acrylique/", client: 127$ 2010/09/02
11:46:35 [debug] 16331#0: *1 http script regex: "^/alsace(.*)" 2010/09/02 11:46:35 [notice]
16331#0: *1 "^/alsace(.*)" matches
"/alsace/artistes/peintres/lucienne-aman-aquarelle-ou-acrylique/", client: 127.0.0.$
2010/09/02 11:46:35 [debug] 16331#0: *1 http script copy: <a class="moz-txt-link-rfc2396E" href="http://alsace.hopla-net.com">"http://alsace.hopla-net.com"</a>
2010/09/02 11:46:35 [debug] 16331#0: *1 http script capture:
"/artistes/peintres/lucienne-aman-aquarelle-ou-acrylique/"
2010/09/02 11:46:35 [debug] 16331#0: *1 http script regex end
2010/09/02 11:46:35 [notice] 16331#0: *1 rewritten redirect:
<a class="moz-txt-link-rfc2396E" href="http://alsace.hopla-net.com/artistes/peintres/lucienne-aman-aquarelle-ou-acrylique/">"http://alsace.hopla-net.com/artistes/peintres/lucienne-aman-aquarelle-ou-acrylique/"</a>,$
2010/09/02 11:46:35 [debug] 16331#0: *1 http finalize request: 302,
"/alsace/artistes/peintres/lucienne-aman-aquarelle-ou-acrylique/?" 1 2010/09/02 11:46:35
[debug] 16331#0: *1 http special response: 302,
"/alsace/artistes/peintres/lucienne-aman-aquarelle-ou-acrylique/?" 2010/09/02 11:46:35 [debug]
16331#0: *1 http set discard body
2010/09/02 11:46:35 [debug] 16331#0: *1 HTTP/1.1 302 Moved Temporarily Server: nginx/0.7.67
Date: Thu, 02 Sep 2010 09:46:35 GMT
Content-Type: text/html
Content-Length: 161
Connection: close
Location: <a class="moz-txt-link-freetext" href="http://alsace.hopla-net.com/artistes/peintres/lucienne-aman-aquarelle-ou-acrylique/">http://alsace.hopla-net.com/artistes/peintres/lucienne-aman-aquarelle-ou-acrylique/</a>
2010/09/02 11:46:35 [debug] 16331#0: *1 event timer del: 14: 1283420858304 2010/09/02 11:46:35
[debug] 16331#0: *1 generic phase: 0
2010/09/02 11:46:35 [debug] 16331#0: *1 add cleanup: 00000000006D4648 2010/09/02 11:46:35
[debug] 16331#0: *1 generic phase: 1
2010/09/02 11:46:35 [debug] 16331#0: *1 http script var
2010/09/02 11:46:35 [debug] 16331#0: *1 http script var: "<a class="moz-txt-link-abbreviated" href="http://www.hopla-net.com">www.hopla-net.com</a>" 2010/09/02
11:46:35 [debug] 16331#0: *1 http script regex: "^hopla-net\.com$" 2010/09/02 11:46:35
[notice] 16331#0: *1 "^hopla-net\.com$" does not match "<a class="moz-txt-link-abbreviated" href="http://www.hopla-net.com">www.hopla-net.com</a>", client: 127.0.0.1,
server: <a class="moz-txt-link-abbreviated" href="http://www.hopla-net.com">www.hopla-net.com</a>, reque$ 2010/09/02 11:46:35 [debug] 16331#0: *1 http script if
2010/09/02 11:46:35 [debug] 16331#0: *1 http script if: false
2010/09/02 11:46:35 [debug] 16331#0: *1 http script regex: "^/bale(.*)" 2010/09/02 11:46:35
[notice] 16331#0: *1 "^/bale(.*)" does not match
"/alsace/artistes/peintres/lucienne-aman-aquarelle-ou-acrylique/", client: 127$ 2010/09/02
11:46:35 [debug] 16331#0: *1 http script regex: "^/alsace(.*)" 2010/09/02 11:46:35 [notice]
16331#0: *1 "^/alsace(.*)" matches
"/alsace/artistes/peintres/lucienne-aman-aquarelle-ou-acrylique/", client: 127.0.0.$
2010/09/02 11:46:35 [debug] 16331#0: *1 http script copy: <a class="moz-txt-link-rfc2396E" href="http://alsace.hopla-net.com">"http://alsace.hopla-net.com"</a>
2010/09/02 11:46:35 [debug] 16331#0: *1 http script capture:
"/artistes/peintres/lucienne-aman-aquarelle-ou-acrylique/"
2010/09/02 11:46:35 [debug] 16331#0: *1 http script regex end
2010/09/02 11:46:35 [notice] 16331#0: *1 rewritten redirect:
<a class="moz-txt-link-rfc2396E" href="http://alsace.hopla-net.com/artistes/peintres/lucienne-aman-aquarelle-ou-acrylique/">"http://alsace.hopla-net.com/artistes/peintres/lucienne-aman-aquarelle-ou-acrylique/"</a>,$
2010/09/02 11:46:35 [debug] 16331#0: *1 http finalize request: 302,
"/alsace/artistes/peintres/lucienne-aman-aquarelle-ou-acrylique/?" 1 2010/09/02 11:46:35
[debug] 16331#0: *1 http special response: 302,
"/alsace/artistes/peintres/lucienne-aman-aquarelle-ou-acrylique/?" 2010/09/02 11:46:35 [debug]
16331#0: *1 http set discard body
2010/09/02 11:46:35 [debug] 16331#0: *1 HTTP/1.1 302 Moved Temporarily Server: nginx/0.7.67
Date: Thu, 02 Sep 2010 09:46:35 GMT
Content-Type: text/html
Content-Length: 161
Connection: close
Location: <a class="moz-txt-link-freetext" href="http://alsace.hopla-net.com/artistes/peintres/lucienne-aman-aquarelle-ou-acrylique/">http://alsace.hopla-net.com/artistes/peintres/lucienne-aman-aquarelle-ou-acrylique/</a>


<img alt="graph nginx" src="cid:part1.02070207.07060006@martronic.ch" width="671" height="637">
<img alt="info-nginx" src="cid:part2.04010501.03010008@martronic.ch" width="805" height="93">


First configuration I had (no problems):
============================================================

  upstream hoplanet {
    ip_hash;
    server 127.0.0.1:8194 max_fails=3 fail_timeout=30s;
    server 127.0.0.1:8193 max_fails=3 fail_timeout=30s;
    server 127.0.0.1:8192 max_fails=3 fail_timeout=30s;
    server 127.0.0.1:8191 max_fails=3 fail_timeout=30s;
  }

  server {
    listen 8201;
    server_name hopla-net.com <a class="moz-txt-link-abbreviated" href="http://www.hopla-net.com">www.hopla-net.com</a>;
    access_log /home/awstats/hoplanet/access.log varnish;

    if ($host ~* ^hopla-net\.com$) {
       rewrite ^(.*) <a class="moz-txt-link-freetext" href="http://www.hopla-net.com$1">http://www.hopla-net.com$1</a> permanent;
       break;
    }

    rewrite ^/(.*) /VirtualHostBase/http/www.hopla-net.com:80/hoplanet/VirtualHostRoot/$1
last;

    location / {
      proxy_pass <a class="moz-txt-link-freetext" href="http://hoplanet">http://hoplanet</a>;
    }

  }

New configuration that has the problem:
=========================================

  upstream hoplanet {
    ip_hash;
    server 127.0.0.1:9190 max_fails=6 fail_timeout=60s;
    server 127.0.0.1:9191 max_fails=6 fail_timeout=60s;
    server 127.0.0.1:9192 max_fails=6 fail_timeout=60s;
    server 127.0.0.1:9193 max_fails=6 fail_timeout=60s;
  }

  server {
    listen 8201;
    server_name <a class="moz-txt-link-abbreviated" href="http://www.hopla-net.com">www.hopla-net.com</a> hopla-net.com;
    error_log  /home/awstats/nginx/error.log debug;
    access_log /home/awstats/hoplanet/access.log varnish;

    if ($host ~* ^hopla-net\.com$) {
       rewrite ^(.*) <a class="moz-txt-link-freetext" href="http://www.hopla-net.com$1">http://www.hopla-net.com$1</a> permanent;
       break;
    }

       rewrite ^/bale(.*) <a class="moz-txt-link-freetext" href="http://bale.hopla-net.com$1">http://bale.hopla-net.com$1</a>;
       rewrite ^/alsace(.*) <a class="moz-txt-link-freetext" href="http://alsace.hopla-net.com$1">http://alsace.hopla-net.com$1</a>;
       rewrite ^/bade-sud(.*) <a class="moz-txt-link-freetext" href="http://bade-sud.hopla-net.com$1">http://bade-sud.hopla-net.com$1</a>;
       rewrite ^/jura(.*) <a class="moz-txt-link-freetext" href="http://jura.hopla-net.com$1">http://jura.hopla-net.com$1</a>;
       rewrite ^/bons-plans(.*) <a class="moz-txt-link-freetext" href="http://bons-plans.hopla-net.com$1">http://bons-plans.hopla-net.com$1</a>; subs_filter_types text/html
text/xml;
       subs_filter '<a class="moz-txt-link-freetext" href="http://www.hopla-net.com/alsace">http://www.hopla-net.com/alsace</a>' '<a class="moz-txt-link-freetext" href="http://alsace.hopla-net.com">http://alsace.hopla-net.com</a>';
subs_filter '<a class="moz-txt-link-freetext" href="http://www.hopla-net.com/bade-sud">http://www.hopla-net.com/bade-sud</a>' '<a class="moz-txt-link-freetext" href="http://bade-sud.hopla-net.com">http://bade-sud.hopla-net.com</a>';
subs_filter '<a class="moz-txt-link-freetext" href="http://www.hopla-net.com/bale">http://www.hopla-net.com/bale</a>' '<a class="moz-txt-link-freetext" href="http://bale.hopla-net.com">http://bale.hopla-net.com</a>'; subs_filter
'<a class="moz-txt-link-freetext" href="http://www.hopla-net.com/jura">http://www.hopla-net.com/jura</a>' '<a class="moz-txt-link-freetext" href="http://jura.hopla-net.com">http://jura.hopla-net.com</a>'; subs_filter
'<a class="moz-txt-link-freetext" href="http://www.hopla-net.com/bons-plans">http://www.hopla-net.com/bons-plans</a>' '<a class="moz-txt-link-freetext" href="http://bons-plans.hopla-net.com">http://bons-plans.hopla-net.com</a>';

    rewrite ^/(.*) /VirtualHostBase/http/www.hopla-net.com:80/hopla-net/VirtualHostRoot/$1
last;

    location / {
      proxy_pass <a class="moz-txt-link-freetext" href="http://hoplanet">http://hoplanet</a>;
    }
  }

  server {
    listen 8201;
    server_name bale.hopla-net.com;
    access_log /home/awstats/hoplanet/access.log varnish;

    if ($host ~* ^hopla-net\.com$) {
       rewrite ^(.*) <a class="moz-txt-link-freetext" href="http://www.hopla-net.com$1">http://www.hopla-net.com$1</a> permanent;
       break;
    }

       rewrite ^/accueil(.*) <a class="moz-txt-link-freetext" href="http://www.hopla-net.com$1">http://www.hopla-net.com$1</a>;
       rewrite ^/bale(.*) <a class="moz-txt-link-freetext" href="http://bale.hopla-net.com$1">http://bale.hopla-net.com$1</a>;
       rewrite ^/alsace(.*) <a class="moz-txt-link-freetext" href="http://alsace.hopla-net.com$1">http://alsace.hopla-net.com$1</a>;
       rewrite ^/bade-sud(.*) <a class="moz-txt-link-freetext" href="http://bade-sud.hopla-net.com$1">http://bade-sud.hopla-net.com$1</a>;
       rewrite ^/jura(.*) <a class="moz-txt-link-freetext" href="http://jura.hopla-net.com$1">http://jura.hopla-net.com$1</a>;
       rewrite ^/bons-plans(.*) <a class="moz-txt-link-freetext" href="http://bons-plans.hopla-net.com$1">http://bons-plans.hopla-net.com$1</a>;

       subs_filter_types text/html text/xml;
       subs_filter 'id="portal-logo" href=<a class="moz-txt-link-rfc2396E" href="http://bale.hopla-net.com">"http://bale.hopla-net.com"</a>' 'id="portal-logo"
href=<a class="moz-txt-link-rfc2396E" href="http://www.hopla-net.com">"http://www.hopla-net.com"</a>';
       subs_filter 'class="home" href=<a class="moz-txt-link-rfc2396E" href="http://bale.hopla-net.com">"http://bale.hopla-net.com"</a>' 'class="home"
href=<a class="moz-txt-link-rfc2396E" href="http://www.hopla-net.com">"http://www.hopla-net.com"</a>';
       subs_filter '<a class="moz-txt-link-freetext" href="http://bale.hopla-net.com/accueil">http://bale.hopla-net.com/accueil</a>' '<a class="moz-txt-link-freetext" href="http://www.hopla-net.com/accueil">http://www.hopla-net.com/accueil</a>';
subs_filter '<a class="moz-txt-link-freetext" href="http://bale.hopla-net.com/alsace">http://bale.hopla-net.com/alsace</a>' '<a class="moz-txt-link-freetext" href="http://alsace.hopla-net.com">http://alsace.hopla-net.com</a>';
subs_filter '<a class="moz-txt-link-freetext" href="http://bale.hopla-net.com/bade-sud">http://bale.hopla-net.com/bade-sud</a>' '<a class="moz-txt-link-freetext" href="http://bade-sud.hopla-net.com">http://bade-sud.hopla-net.com</a>';
subs_filter '<a class="moz-txt-link-freetext" href="http://bale.hopla-net.com/bale">http://bale.hopla-net.com/bale</a>' '<a class="moz-txt-link-freetext" href="http://bale.hopla-net.com">http://bale.hopla-net.com</a>'; subs_filter
'<a class="moz-txt-link-freetext" href="http://bale.hopla-net.com/jura">http://bale.hopla-net.com/jura</a>' '<a class="moz-txt-link-freetext" href="http://jura.hopla-net.com">http://jura.hopla-net.com</a>'; subs_filter
'<a class="moz-txt-link-freetext" href="http://bale.hopla-net.com/bons-plans">http://bale.hopla-net.com/bons-plans</a>' '<a class="moz-txt-link-freetext" href="http://bons-plans.hopla-net.com">http://bons-plans.hopla-net.com</a>';

    rewrite ^/(.*)
/VirtualHostBase/http/bale.hopla-net.com:80/hopla-net/bale/VirtualHostRoot/$1 last;

    location / {
      proxy_pass <a class="moz-txt-link-freetext" href="http://hoplanet">http://hoplanet</a>;
    }
  }

  server {
    listen 8201;
    server_name alsace.hopla-net.com;
    access_log /home/awstats/hoplanet/access.log varnish;

    if ($host ~* ^hopla-net\.com$) {
       rewrite ^(.*) <a class="moz-txt-link-freetext" href="http://www.hopla-net.com$1">http://www.hopla-net.com$1</a> permanent;
       break;
    }

    rewrite ^/accueil(.*) <a class="moz-txt-link-freetext" href="http://www.hopla-net.com$1">http://www.hopla-net.com$1</a>;
    rewrite ^/bale(.*) <a class="moz-txt-link-freetext" href="http://bale.hopla-net.com$1">http://bale.hopla-net.com$1</a>;
    rewrite ^/alsace(.*) <a class="moz-txt-link-freetext" href="http://alsace.hopla-net.com$1">http://alsace.hopla-net.com$1</a>;
    rewrite ^/bade-sud(.*) <a class="moz-txt-link-freetext" href="http://bade-sud.hopla-net.com$1">http://bade-sud.hopla-net.com$1</a>;
    rewrite ^/jura(.*) <a class="moz-txt-link-freetext" href="http://jura.hopla-net.com$1">http://jura.hopla-net.com$1</a>;
    rewrite ^/bons-plans(.*) <a class="moz-txt-link-freetext" href="http://bons-plans.hopla-net.com$1">http://bons-plans.hopla-net.com$1</a>;

       subs_filter_types text/html text/xml;
       subs_filter 'id="portal-logo" href=<a class="moz-txt-link-rfc2396E" href="http://alsace.hopla-net.com">"http://alsace.hopla-net.com"</a>' 'id="portal-logo"
href=<a class="moz-txt-link-rfc2396E" href="http://www.hopla-net.com">"http://www.hopla-net.com"</a>';
       subs_filter 'class="home" href=<a class="moz-txt-link-rfc2396E" href="http://alsace.hopla-net.com">"http://alsace.hopla-net.com"</a>' 'class="home"
href=<a class="moz-txt-link-rfc2396E" href="http://www.hopla-net.com">"http://www.hopla-net.com"</a>';
       subs_filter '<a class="moz-txt-link-freetext" href="http://alsace.hopla-net.com/accueil">http://alsace.hopla-net.com/accueil</a>' '<a class="moz-txt-link-freetext" href="http://www.hopla-net.com/accueil">http://www.hopla-net.com/accueil</a>';
subs_filter '<a class="moz-txt-link-freetext" href="http://alsace.hopla-net.com/alsace">http://alsace.hopla-net.com/alsace</a>' '<a class="moz-txt-link-freetext" href="http://alsace.hopla-net.com">http://alsace.hopla-net.com</a>';
subs_filter '<a class="moz-txt-link-freetext" href="http://alsace.hopla-net.com/bade-sud">http://alsace.hopla-net.com/bade-sud</a>' '<a class="moz-txt-link-freetext" href="http://bade-sud.hopla-net.com">http://bade-sud.hopla-net.com</a>';
subs_filter '<a class="moz-txt-link-freetext" href="http://alsace.hopla-net.com/bale">http://alsace.hopla-net.com/bale</a>' '<a class="moz-txt-link-freetext" href="http://bale.hopla-net.com">http://bale.hopla-net.com</a>'; subs_filter
'<a class="moz-txt-link-freetext" href="http://alsace.hopla-net.com/jura">http://alsace.hopla-net.com/jura</a>' '<a class="moz-txt-link-freetext" href="http://jura.hopla-net.com">http://jura.hopla-net.com</a>'; subs_filter
'<a class="moz-txt-link-freetext" href="http://alsace.hopla-net.com/bons-plans">http://alsace.hopla-net.com/bons-plans</a>' '<a class="moz-txt-link-freetext" href="http://bons-plans.hopla-net.com">http://bons-plans.hopla-net.com</a>';

    rewrite ^/(.*)
/VirtualHostBase/http/alsace.hopla-net.com:80/hopla-net/alsace/VirtualHostRoot/$1 last;

    location / {
      proxy_pass <a class="moz-txt-link-freetext" href="http://hoplanet">http://hoplanet</a>;
    }
  }

  server {
    listen 8201;
    server_name bade-sud.hopla-net.com;
    access_log /home/awstats/hoplanet/access.log varnish;

    if ($host ~* ^hopla-net\.com$) {
       rewrite ^(.*) <a class="moz-txt-link-freetext" href="http://www.hopla-net.com$1">http://www.hopla-net.com$1</a> permanent;
       break;
    }

    rewrite ^/accueil(.*) <a class="moz-txt-link-freetext" href="http://www.hopla-net.com$1">http://www.hopla-net.com$1</a>;
    rewrite ^/bale(.*) <a class="moz-txt-link-freetext" href="http://bale.hopla-net.com$1">http://bale.hopla-net.com$1</a>;
    rewrite ^/alsace(.*) <a class="moz-txt-link-freetext" href="http://alsace.hopla-net.com$1">http://alsace.hopla-net.com$1</a>;
    rewrite ^/bade-sud(.*) <a class="moz-txt-link-freetext" href="http://bade-sud.hopla-net.com$1">http://bade-sud.hopla-net.com$1</a>;
    rewrite ^/jura(.*) <a class="moz-txt-link-freetext" href="http://jura.hopla-net.com$1">http://jura.hopla-net.com$1</a>;
    rewrite ^/bons-plans(.*) <a class="moz-txt-link-freetext" href="http://bons-plans.hopla-net.com$1">http://bons-plans.hopla-net.com$1</a>;

       subs_filter_types text/html text/xml;
       subs_filter 'id="portal-logo" href=<a class="moz-txt-link-rfc2396E" href="http://bade-sud.hopla-net.com">"http://bade-sud.hopla-net.com"</a>' 'id="portal-logo"
href=<a class="moz-txt-link-rfc2396E" href="http://www.hopla-net.com">"http://www.hopla-net.com"</a>';
       subs_filter 'class="home" href=<a class="moz-txt-link-rfc2396E" href="http://bade-sud.hopla-net.com">"http://bade-sud.hopla-net.com"</a>' 'class="home"
href=<a class="moz-txt-link-rfc2396E" href="http://www.hopla-net.com">"http://www.hopla-net.com"</a>';
       subs_filter '<a class="moz-txt-link-freetext" href="http://bade-sud.hopla-net.com/accueil">http://bade-sud.hopla-net.com/accueil</a>' '<a class="moz-txt-link-freetext" href="http://www.hopla-net.com/accueil">http://www.hopla-net.com/accueil</a>';
subs_filter '<a class="moz-txt-link-freetext" href="http://bade-sud.hopla-net.com/alsace">http://bade-sud.hopla-net.com/alsace</a>' '<a class="moz-txt-link-freetext" href="http://alsace.hopla-net.com">http://alsace.hopla-net.com</a>';
subs_filter '<a class="moz-txt-link-freetext" href="http://bade-sud.hopla-net.com/bade-sud">http://bade-sud.hopla-net.com/bade-sud</a>' '<a class="moz-txt-link-freetext" href="http://bade-sud.hopla-net.com">http://bade-sud.hopla-net.com</a>';
subs_filter '<a class="moz-txt-link-freetext" href="http://bade-sud.hopla-net.com/bale">http://bade-sud.hopla-net.com/bale</a>' '<a class="moz-txt-link-freetext" href="http://bale.hopla-net.com">http://bale.hopla-net.com</a>';
subs_filter '<a class="moz-txt-link-freetext" href="http://bade-sud.hopla-net.com/jura">http://bade-sud.hopla-net.com/jura</a>' '<a class="moz-txt-link-freetext" href="http://jura.hopla-net.com">http://jura.hopla-net.com</a>';
subs_filter '<a class="moz-txt-link-freetext" href="http://bade-sud.hopla-net.com/bons-plans">http://bade-sud.hopla-net.com/bons-plans</a>'
'<a class="moz-txt-link-freetext" href="http://bons-plans.hopla-net.com">http://bons-plans.hopla-net.com</a>';

    rewrite ^/(.*)
/VirtualHostBase/http/bade-sud.hopla-net.com:80/hopla-net/bade-sud/VirtualHostRoot/$1 last;

    location / {
      proxy_pass <a class="moz-txt-link-freetext" href="http://hoplanet">http://hoplanet</a>;
    }
  }


  server {
    listen 8201;
    server_name jura.hopla-net.com;
    access_log /home/awstats/hoplanet/access.log varnish;

    if ($host ~* ^hopla-net\.com$) {
       rewrite ^(.*) <a class="moz-txt-link-freetext" href="http://www.hopla-net.com$1">http://www.hopla-net.com$1</a> permanent;
       break;
    }

    rewrite ^/accueil(.*) <a class="moz-txt-link-freetext" href="http://www.hopla-net.com$1">http://www.hopla-net.com$1</a>;
    rewrite ^/bale(.*) <a class="moz-txt-link-freetext" href="http://bale.hopla-net.com$1">http://bale.hopla-net.com$1</a>;
    rewrite ^/alsace(.*) <a class="moz-txt-link-freetext" href="http://alsace.hopla-net.com$1">http://alsace.hopla-net.com$1</a>;
    rewrite ^/bade-sud(.*) <a class="moz-txt-link-freetext" href="http://bade-sud.hopla-net.com$1">http://bade-sud.hopla-net.com$1</a>;
    rewrite ^/jura(.*) <a class="moz-txt-link-freetext" href="http://jura.hopla-net.com$1">http://jura.hopla-net.com$1</a>;
    rewrite ^/bons-plans(.*) <a class="moz-txt-link-freetext" href="http://bons-plans.hopla-net.com$1">http://bons-plans.hopla-net.com$1</a>;

       subs_filter_types text/html text/xml;
       subs_filter 'id="portal-logo" href=<a class="moz-txt-link-rfc2396E" href="http://jura.hopla-net.com">"http://jura.hopla-net.com"</a>' 'id="portal-logo"
href=<a class="moz-txt-link-rfc2396E" href="http://www.hopla-net.com">"http://www.hopla-net.com"</a>';
       subs_filter 'class="home" href=<a class="moz-txt-link-rfc2396E" href="http://jura.hopla-net.com">"http://jura.hopla-net.com"</a>' 'class="home"
href=<a class="moz-txt-link-rfc2396E" href="http://www.hopla-net.com">"http://www.hopla-net.com"</a>';
       subs_filter '<a class="moz-txt-link-freetext" href="http://jura.hopla-net.com/accueil">http://jura.hopla-net.com/accueil</a>' '<a class="moz-txt-link-freetext" href="http://www.hopla-net.com/accueil">http://www.hopla-net.com/accueil</a>';
subs_filter '<a class="moz-txt-link-freetext" href="http://jura.hopla-net.com/alsace">http://jura.hopla-net.com/alsace</a>' '<a class="moz-txt-link-freetext" href="http://alsace.hopla-net.com">http://alsace.hopla-net.com</a>';
subs_filter '<a class="moz-txt-link-freetext" href="http://jura.hopla-net.com/bade-sud">http://jura.hopla-net.com/bade-sud</a>' '<a class="moz-txt-link-freetext" href="http://bade-sud.hopla-net.com">http://bade-sud.hopla-net.com</a>';
subs_filter '<a class="moz-txt-link-freetext" href="http://jura.hopla-net.com/bale">http://jura.hopla-net.com/bale</a>' '<a class="moz-txt-link-freetext" href="http://bale.hopla-net.com">http://bale.hopla-net.com</a>'; subs_filter
'<a class="moz-txt-link-freetext" href="http://jura.hopla-net.com/jura">http://jura.hopla-net.com/jura</a>' '<a class="moz-txt-link-freetext" href="http://jura.hopla-net.com">http://jura.hopla-net.com</a>'; subs_filter
'<a class="moz-txt-link-freetext" href="http://jura.hopla-net.com/bons-plans">http://jura.hopla-net.com/bons-plans</a>' '<a class="moz-txt-link-freetext" href="http://bons-plans.hopla-net.com">http://bons-plans.hopla-net.com</a>';

    rewrite ^/(.*)
/VirtualHostBase/http/jura.hopla-net.com:80/hopla-net/jura/VirtualHostRoot/$1 last;

    location / {
      proxy_pass <a class="moz-txt-link-freetext" href="http://hoplanet">http://hoplanet</a>;
    }
  }

  server {
    listen 8201;
    server_name bons-plans.hopla-net.com;
    access_log /home/awstats/hoplanet/access.log varnish;

    if ($host ~* ^hopla-net\.com$) {
       rewrite ^(.*) <a class="moz-txt-link-freetext" href="http://www.hopla-net.com$1">http://www.hopla-net.com$1</a> permanent;
       break;
    }

    rewrite ^/accueil(.*) <a class="moz-txt-link-freetext" href="http://www.hopla-net.com$1">http://www.hopla-net.com$1</a>;
    rewrite ^/bale(.*) <a class="moz-txt-link-freetext" href="http://bale.hopla-net.com$1">http://bale.hopla-net.com$1</a>;
    rewrite ^/alsace(.*) <a class="moz-txt-link-freetext" href="http://alsace.hopla-net.com$1">http://alsace.hopla-net.com$1</a>;
    rewrite ^/bade-sud(.*) <a class="moz-txt-link-freetext" href="http://bade-sud.hopla-net.com$1">http://bade-sud.hopla-net.com$1</a>;
    rewrite ^/jura(.*) <a class="moz-txt-link-freetext" href="http://jura.hopla-net.com$1">http://jura.hopla-net.com$1</a>;
    rewrite ^/bons-plans(.*) <a class="moz-txt-link-freetext" href="http://bons-plans.hopla-net.com$1">http://bons-plans.hopla-net.com$1</a>;

       subs_filter_types text/html text/xml;
       subs_filter 'id="portal-logo" href=<a class="moz-txt-link-rfc2396E" href="http://bons-plans.hopla-net.com">"http://bons-plans.hopla-net.com"</a>' 'id="portal-logo"
href=<a class="moz-txt-link-rfc2396E" href="http://www.hopla-net.com">"http://www.hopla-net.com"</a>';
       subs_filter 'class="home" href=<a class="moz-txt-link-rfc2396E" href="http://bons-plans.hopla-net.com">"http://bons-plans.hopla-net.com"</a>' 'class="home"
href=<a class="moz-txt-link-rfc2396E" href="http://www.hopla-net.com">"http://www.hopla-net.com"</a>';
       subs_filter '<a class="moz-txt-link-freetext" href="http://bons-plans.hopla-net.com/accueil">http://bons-plans.hopla-net.com/accueil</a>'
'<a class="moz-txt-link-freetext" href="http://www.hopla-net.com/accueil">http://www.hopla-net.com/accueil</a>';
       subs_filter '<a class="moz-txt-link-freetext" href="http://bons-plans.hopla-net.com/alsace">http://bons-plans.hopla-net.com/alsace</a>' '<a class="moz-txt-link-freetext" href="http://alsace.hopla-net.com">http://alsace.hopla-net.com</a>';
subs_filter '<a class="moz-txt-link-freetext" href="http://bons-plans.hopla-net.com/bade-sud">http://bons-plans.hopla-net.com/bade-sud</a>' '<a class="moz-txt-link-freetext" href="http://bade-sud.hopla-net.com">http://bade-sud.hopla-net.com</a>';
subs_filter '<a class="moz-txt-link-freetext" href="http://bons-plans.hopla-net.com/bale">http://bons-plans.hopla-net.com/bale</a>' '<a class="moz-txt-link-freetext" href="http://bale.hopla-net.com">http://bale.hopla-net.com</a>';
subs_filter '<a class="moz-txt-link-freetext" href="http://bons-plans.hopla-net.com/jura">http://bons-plans.hopla-net.com/jura</a>' '<a class="moz-txt-link-freetext" href="http://jura.hopla-net.com">http://jura.hopla-net.com</a>';
subs_filter '<a class="moz-txt-link-freetext" href="http://bons-plans.hopla-net.com/bons-plans">http://bons-plans.hopla-net.com/bons-plans</a>'
'<a class="moz-txt-link-freetext" href="http://bons-plans.hopla-net.com">http://bons-plans.hopla-net.com</a>';

    rewrite ^/(.*)
/VirtualHostBase/http/bons-plans.hopla-net.com:80/hopla-net/bons-plans/VirtualHostRoot/$1 last;

    location / {
      proxy_pass <a class="moz-txt-link-freetext" href="http://hoplanet">http://hoplanet</a>;
    }
  }



This is a trial configuration so that urls are not rewritten when there is a cookie.
This configuration is not working....:
===============================================================

upstream hoplanet {
ip_hash;
server 94.23.227.152:9190 max_fails=6 fail_timeout=60s;
server 94.23.227.152:9191 max_fails=6 fail_timeout=60s;
server 94.23.227.152:9192 max_fails=6 fail_timeout=60s;
server 94.23.227.152:9193 max_fails=6 fail_timeout=60s;
}

server {
listen 8201;
server_namewww.hopla-net.com hopla-net.com;
access_log /home/awstats/hoplanet/access.log varnish;


if ($host ~* ^hopla-net\.com$) {
rewrite ^(.*)<a class="moz-txt-link-freetext" href="http://www.hopla-net.com$1">http://www.hopla-net.com$1</a> permanent;
break;
}


if ($http_kookie !~* "__ac") {
rewrite ^/bale(.*)<a class="moz-txt-link-freetext" href="http://bale.hopla-net.com$1">http://bale.hopla-net.com$1</a>;
rewrite ^/alsace(.*)<a class="moz-txt-link-freetext" href="http://alsace.hopla-net.com$1">http://alsace.hopla-net.com$1</a>;
rewrite ^/bade-sud(.*)<a class="moz-txt-link-freetext" href="http://bade-sud.hopla-net.com$1">http://bade-sud.hopla-net.com$1</a>;
rewrite ^/jura(.*)<a class="moz-txt-link-freetext" href="http://jura.hopla-net.com$1">http://jura.hopla-net.com$1</a>;
rewrite ^/bons-plans(.*)<a class="moz-txt-link-freetext" href="http://bons-plans.hopla-net.com$1">http://bons-plans.hopla-net.com$1</a>;
rewrite ^(.*) $1/filter/;
}


location ~* ^(.*)/filter/$ {
set $true_uri $1;
subs_filter_types text/html text/xml;
subs_filter '<a class="moz-txt-link-freetext" href="http://www.hopla-net.com/alsace''http://alsace.hopla-net.com">http://www.hopla-net.com/alsace''http://alsace.hopla-net.com</a>';
subs_filter '<a class="moz-txt-link-freetext" href="http://www.hopla-net.com/bade-sud''http://bade-sud.hopla-net.com">http://www.hopla-net.com/bade-sud''http://bade-sud.hopla-net.com</a>';
subs_filter '<a class="moz-txt-link-freetext" href="http://www.hopla-net.com/bale''http://bale.hopla-net.com">http://www.hopla-net.com/bale''http://bale.hopla-net.com</a>';
subs_filter '<a class="moz-txt-link-freetext" href="http://www.hopla-net.com/jura''http://jura.hopla-net.com">http://www.hopla-net.com/jura''http://jura.hopla-net.com</a>';
subs_filter '<a class="moz-txt-link-freetext" href="http://www.hopla-net.com/bons-plans''http://bons-plans.hopla-net.com">http://www.hopla-net.com/bons-plans''http://bons-plans.hopla-net.com</a>';
proxy_pass
<a href="http://hoplanet/VirtualHostBase/http/www.hopla-net.com:80/hopla-net/VirtualHostRoot/$true_uri" target="_blank" rel="nofollow">http://hoplanet/VirtualHostBase/http/www.hopla-net.com:80/hopla-net/VirtualHostRoot/$true_uri</a>;
break;
}

rewrite ^/(.*)/VirtualHostBase/http/www.hopla-net.com:80/hopla-net/VirtualHostRoot/$1 last;

location / {
proxy_pass<a href="http://hoplanet" target="_blank" rel="nofollow">http://hoplanet</a>;
}

}

server {
listen 8201;
server_name bale.hopla-net.com;
access_log /home/awstats/hoplanet/access.log varnish;

if ($http_kookie !~* "__ac") {
rewrite ^/accueil(.*)<a class="moz-txt-link-freetext" href="http://www.hopla-net.com$1">http://www.hopla-net.com$1</a>;
rewrite ^/alsace(.*)<a class="moz-txt-link-freetext" href="http://alsace.hopla-net.com$1">http://alsace.hopla-net.com$1</a>;
rewrite ^/bade-sud(.*)<a class="moz-txt-link-freetext" href="http://bade-sud.hopla-net.com$1">http://bade-sud.hopla-net.com$1</a>;
rewrite ^/jura(.*)<a class="moz-txt-link-freetext" href="http://jura.hopla-net.com$1">http://jura.hopla-net.com$1</a>;
rewrite ^/bons-plans(.*)<a class="moz-txt-link-freetext" href="http://bons-plans.hopla-net.com$1">http://bons-plans.hopla-net.com$1</a>;
rewrite ^(.*) $1/filter/;
}


location ~* ^(.*)/filter/$ {
set $true_uri $1;
subs_filter_types text/html text/xml;
subs_filter 'id="portal-logo" href="<a href="http://bale.hopla-net.com%22" target="_blank" rel="nofollow">http://bale.hopla-net.com"</a>;' 'id="portal-logo"
href="<a href="http://www.hopla-net.com%22" target="_blank" rel="nofollow">http://www.hopla-net.com"</a>;';
subs_filter 'class="home" href="<a href="http://bale.hopla-net.com%22" target="_blank" rel="nofollow">http://bale.hopla-net.com"</a>;' 'class="home"
href="<a href="http://www.hopla-net.com%22" target="_blank" rel="nofollow">http://www.hopla-net.com"</a>;';
subs_filter '<a class="moz-txt-link-freetext" href="http://bale.hopla-net.com/accueil''http://www.hopla-net.com/accueil">http://bale.hopla-net.com/accueil''http://www.hopla-net.com/accueil</a>';
subs_filter '<a class="moz-txt-link-freetext" href="http://bale.hopla-net.com/alsace''http://alsace.hopla-net.com">http://bale.hopla-net.com/alsace''http://alsace.hopla-net.com</a>';
subs_filter '<a class="moz-txt-link-freetext" href="http://bale.hopla-net.com/bade-sud''http://bade-sud.hopla-net.com">http://bale.hopla-net.com/bade-sud''http://bade-sud.hopla-net.com</a>';
subs_filter '<a class="moz-txt-link-freetext" href="http://bale.hopla-net.com/jura''http://jura.hopla-net.com">http://bale.hopla-net.com/jura''http://jura.hopla-net.com</a>';
subs_filter '<a class="moz-txt-link-freetext" href="http://bale.hopla-net.com/bons-plans''http://bons-plans.hopla-net.com">http://bale.hopla-net.com/bons-plans''http://bons-plans.hopla-net.com</a>';
proxy_pass
<a href="http://hoplanet/VirtualHostBase/http/bale.hopla-net.com:80/hopla-net/bale/VirtualHostRoot/$true_uri" target="_blank" rel="nofollow">http://hoplanet/VirtualHostBase/http/bale.hopla-net.com:80/hopla-net/bale/VirtualHostRoot/$true_uri</a>;
break;
}

rewrite ^/(.*)
/VirtualHostBase/http/bale.hopla-net.com:80/hopla-net/bale/VirtualHostRoot/$1 last;

location / {
proxy_pass<a href="http://hoplanet" target="_blank" rel="nofollow">http://hoplanet</a>;
}

}

server {
listen 8201;
server_name alsace.hopla-net.com;
access_log /home/awstats/hoplanet/access.log varnish;

if ($http_kookie !~* "__ac") {
rewrite ^/accueil(.*)<a class="moz-txt-link-freetext" href="http://www.hopla-net.com$1">http://www.hopla-net.com$1</a>;
rewrite ^/bale(.*)<a class="moz-txt-link-freetext" href="http://bale.hopla-net.com$1">http://bale.hopla-net.com$1</a>;
rewrite ^/bade-sud(.*)<a class="moz-txt-link-freetext" href="http://bade-sud.hopla-net.com$1">http://bade-sud.hopla-net.com$1</a>;
rewrite ^/jura(.*)<a class="moz-txt-link-freetext" href="http://jura.hopla-net.com$1">http://jura.hopla-net.com$1</a>;
rewrite ^/bons-plans(.*)<a class="moz-txt-link-freetext" href="http://bons-plans.hopla-net.com$1">http://bons-plans.hopla-net.com$1</a>;
rewrite ^(.*) $1/filter/;
}

location ~* ^(.*)/filter/$ {
set $true_uri $1;
subs_filter_types text/html text/xml;
subs_filter 'id="portal-logo" href="<a href="http://alsace.hopla-net.com%22" target="_blank" rel="nofollow">http://alsace.hopla-net.com"</a>;' 'id="portal-logo"
href="<a href="http://www.hopla-net.com%22" target="_blank" rel="nofollow">http://www.hopla-net.com"</a>;';
subs_filter 'class="home" href="<a href="http://alsace.hopla-net.com%22" target="_blank" rel="nofollow">http://alsace.hopla-net.com"</a>;' 'class="home"
href="<a href="http://www.hopla-net.com%22" target="_blank" rel="nofollow">http://www.hopla-net.com"</a>;';
subs_filter '<a class="moz-txt-link-freetext" href="http://alsace.hopla-net.com/accueil''http://www.hopla-net.com/accueil">http://alsace.hopla-net.com/accueil''http://www.hopla-net.com/accueil</a>';
subs_filter '<a class="moz-txt-link-freetext" href="http://alsace.hopla-net.com/bade-sud''http://bade-sud.hopla-net.com">http://alsace.hopla-net.com/bade-sud''http://bade-sud.hopla-net.com</a>';
subs_filter '<a class="moz-txt-link-freetext" href="http://alsace.hopla-net.com/bale''http://bale.hopla-net.com">http://alsace.hopla-net.com/bale''http://bale.hopla-net.com</a>';
subs_filter '<a class="moz-txt-link-freetext" href="http://alsace.hopla-net.com/jura''http://jura.hopla-net.com">http://alsace.hopla-net.com/jura''http://jura.hopla-net.com</a>';
subs_filter '<a class="moz-txt-link-freetext" href="http://alsace.hopla-net.com/bons-plans''http://bons-plans.hopla-net.com">http://alsace.hopla-net.com/bons-plans''http://bons-plans.hopla-net.com</a>';
proxy_pass
<a href="http://hoplanet/VirtualHostBase/http/alsace.hopla-net.com:80/hopla-net/alsace/VirtualHostRoot/$true_uri" target="_blank" rel="nofollow">http://hoplanet/VirtualHostBase/http/alsace.hopla-net.com:80/hopla-net/alsace/VirtualHostRoot/$true_uri</a>;
break;
}

rewrite ^/(.*)
/VirtualHostBase/http/alsace.hopla-net.com:80/hopla-net/alsace/VirtualHostRoot/$1 last;

location / {
proxy_pass<a href="http://hoplanet" target="_blank" rel="nofollow">http://hoplanet</a>;
}

}

server {
listen 8201;
server_name bade-sud.hopla-net.com;
access_log /home/awstats/hoplanet/access.log varnish;


if ($http_kookie !~* "__ac") {
rewrite ^/accueil(.*)<a class="moz-txt-link-freetext" href="http://www.hopla-net.com$1">http://www.hopla-net.com$1</a>;
rewrite ^/bale(.*)<a class="moz-txt-link-freetext" href="http://bale.hopla-net.com$1">http://bale.hopla-net.com$1</a>;
rewrite ^/bade-sud(.*)<a class="moz-txt-link-freetext" href="http://bade-sud.hopla-net.com$1">http://bade-sud.hopla-net.com$1</a>;
rewrite ^/jura(.*)<a class="moz-txt-link-freetext" href="http://jura.hopla-net.com$1">http://jura.hopla-net.com$1</a>;
rewrite ^/bons-plans(.*)<a class="moz-txt-link-freetext" href="http://bons-plans.hopla-net.com$1">http://bons-plans.hopla-net.com$1</a>;
rewrite ^(.*) $1/filter/;
}

location ~* ^(.*)/filter/$ {
set $true_uri $1;
subs_filter_types text/html text/xml;
subs_filter 'id="portal-logo" href="<a href="http://bade-sud.hopla-net.com%22" target="_blank" rel="nofollow">http://bade-sud.hopla-net.com"</a>;' 'id="portal-logo"
href="<a href="http://www.hopla-net.com%22" target="_blank" rel="nofollow">http://www.hopla-net.com"</a>;';
subs_filter 'class="home" href="<a href="http://bade-sud.hopla-net.com%22" target="_blank" rel="nofollow">http://bade-sud.hopla-net.com"</a>;' 'class="home"
href="<a href="http://www.hopla-net.com%22" target="_blank" rel="nofollow">http://www.hopla-net.com"</a>;';
subs_filter '<a class="moz-txt-link-freetext" href="http://bade-sud.hopla-net.com/accueil''http://www.hopla-net.com/accueil">http://bade-sud.hopla-net.com/accueil''http://www.hopla-net.com/accueil</a>';
subs_filter '<a class="moz-txt-link-freetext" href="http://bade-sud.hopla-net.com/alsace''http://alsace.hopla-net.com">http://bade-sud.hopla-net.com/alsace''http://alsace.hopla-net.com</a>';
subs_filter '<a class="moz-txt-link-freetext" href="http://bade-sud.hopla-net.com/bale''http://bale.hopla-net.com">http://bade-sud.hopla-net.com/bale''http://bale.hopla-net.com</a>';
subs_filter '<a class="moz-txt-link-freetext" href="http://bade-sud.hopla-net.com/jura''http://jura.hopla-net.com">http://bade-sud.hopla-net.com/jura''http://jura.hopla-net.com</a>';
subs_filter '<a class="moz-txt-link-freetext" href="http://bade-sud.hopla-net.com/bons-plans''http://bons-plans.hopla-net.com">http://bade-sud.hopla-net.com/bons-plans''http://bons-plans.hopla-net.com</a>';
proxy_pass
<a href="http://hoplanet/VirtualHostBase/http/bade-sud.hopla-net.com:80/hopla-net/bade-sud/VirtualHostRoot/$true_uri" target="_blank" rel="nofollow">http://hoplanet/VirtualHostBase/http/bade-sud.hopla-net.com:80/hopla-net/bade-sud/VirtualHostRoot/$true_uri</a>;
break;
}

rewrite ^/(.*)
/VirtualHostBase/http/bade-sud.hopla-net.com:80/hopla-net/bade-sud/VirtualHostRoot/$1
last;

location / {
proxy_pass<a href="http://hoplanet" target="_blank" rel="nofollow">http://hoplanet</a>;
}

}


server {
listen 8201;
server_name jura.hopla-net.com;
access_log /home/awstats/hoplanet/access.log varnish;

if ($http_kookie !~* "__ac") {
rewrite ^/accueil(.*)<a class="moz-txt-link-freetext" href="http://www.hopla-net.com$1">http://www.hopla-net.com$1</a>;
rewrite ^/bale(.*)<a class="moz-txt-link-freetext" href="http://bale.hopla-net.com$1">http://bale.hopla-net.com$1</a>;
rewrite ^/bade-sud(.*)<a class="moz-txt-link-freetext" href="http://bade-sud.hopla-net.com$1">http://bade-sud.hopla-net.com$1</a>;
rewrite ^/bons-plans(.*)<a class="moz-txt-link-freetext" href="http://bons-plans.hopla-net.com$1">http://bons-plans.hopla-net.com$1</a>;
rewrite ^(.*) $1/filter/;
}

location ~* ^(.*)/filter/$ {
set $true_uri $1;
subs_filter_types text/html text/xml;
subs_filter 'id="portal-logo" href="<a href="http://jura.hopla-net.com%22" target="_blank" rel="nofollow">http://jura.hopla-net.com"</a>;' 'id="portal-logo"
href="<a href="http://www.hopla-net.com%22" target="_blank" rel="nofollow">http://www.hopla-net.com"</a>;';
subs_filter 'class="home" href="<a href="http://jura.hopla-net.com%22" target="_blank" rel="nofollow">http://jura.hopla-net.com"</a>;' 'class="home"
href="<a href="http://www.hopla-net.com%22" target="_blank" rel="nofollow">http://www.hopla-net.com"</a>;';
subs_filter '<a class="moz-txt-link-freetext" href="http://jura.hopla-net.com/accueil''http://www.hopla-net.com/accueil">http://jura.hopla-net.com/accueil''http://www.hopla-net.com/accueil</a>';
subs_filter '<a class="moz-txt-link-freetext" href="http://jura.hopla-net.com/alsace''http://alsace.hopla-net.com">http://jura.hopla-net.com/alsace''http://alsace.hopla-net.com</a>';
subs_filter '<a class="moz-txt-link-freetext" href="http://jura.hopla-net.com/bade-sud''http://bade-sud.hopla-net.com">http://jura.hopla-net.com/bade-sud''http://bade-sud.hopla-net.com</a>';
subs_filter '<a class="moz-txt-link-freetext" href="http://jura.hopla-net.com/bale''http://bale.hopla-net.com">http://jura.hopla-net.com/bale''http://bale.hopla-net.com</a>';
subs_filter '<a class="moz-txt-link-freetext" href="http://jura.hopla-net.com/bons-plans''http://bons-plans.hopla-net.com">http://jura.hopla-net.com/bons-plans''http://bons-plans.hopla-net.com</a>';
proxy_pass
<a href="http://hoplanet/VirtualHostBase/http/jura.hopla-net.com:80/hopla-net/jura/VirtualHostRoot/$true_uri" target="_blank" rel="nofollow">http://hoplanet/VirtualHostBase/http/jura.hopla-net.com:80/hopla-net/jura/VirtualHostRoot/$true_uri</a>;
break;
}

rewrite ^/(.*)
/VirtualHostBase/http/jura.hopla-net.com:80/hopla-net/jura/VirtualHostRoot/$1 last;

location / {
proxy_pass<a href="http://hoplanet" target="_blank" rel="nofollow">http://hoplanet</a>;
}

}

server {
listen 8201;
server_name bons-plans.hopla-net.com;
access_log /home/awstats/hoplanet/access.log varnish;

if ($http_kookie !~* "__ac") {
rewrite ^/accueil(.*)<a class="moz-txt-link-freetext" href="http://www.hopla-net.com$1">http://www.hopla-net.com$1</a>;
rewrite ^/bale(.*)<a class="moz-txt-link-freetext" href="http://bale.hopla-net.com$1">http://bale.hopla-net.com$1</a>;
rewrite ^/bade-sud(.*)<a class="moz-txt-link-freetext" href="http://bade-sud.hopla-net.com$1">http://bade-sud.hopla-net.com$1</a>;
rewrite ^/jura(.*)<a class="moz-txt-link-freetext" href="http://jura.hopla-net.com$1">http://jura.hopla-net.com$1</a>;
rewrite ^(.*) $1/filter/;
}

location ~* ^(.*)/filter/$ {
set $true_uri $1;
subs_filter_types text/html text/xml;
subs_filter 'id="portal-logo" href="<a href="http://bons-plans.hopla-net.com%22" target="_blank" rel="nofollow">http://bons-plans.hopla-net.com"</a>;'
'id="portal-logo" href="<a href="http://www.hopla-net.com%22" target="_blank" rel="nofollow">http://www.hopla-net.com"</a>;';
subs_filter 'class="home" href="<a href="http://bons-plans.hopla-net.com%22" target="_blank" rel="nofollow">http://bons-plans.hopla-net.com"</a>;' 'class="home"
href="<a href="http://www.hopla-net.com%22" target="_blank" rel="nofollow">http://www.hopla-net.com"</a>;';
subs_filter '<a class="moz-txt-link-freetext" href="http://bons-plans.hopla-net.com/accueil''http://www.hopla-net.com/accueil">http://bons-plans.hopla-net.com/accueil''http://www.hopla-net.com/accueil</a>';
subs_filter '<a class="moz-txt-link-freetext" href="http://bons-plans.hopla-net.com/alsace''http://alsace.hopla-net.com">http://bons-plans.hopla-net.com/alsace''http://alsace.hopla-net.com</a>';
subs_filter '<a class="moz-txt-link-freetext" href="http://bons-plans.hopla-net.com/bade-sud''http://bade-sud.hopla-net.com">http://bons-plans.hopla-net.com/bade-sud''http://bade-sud.hopla-net.com</a>';
subs_filter '<a class="moz-txt-link-freetext" href="http://bons-plans.hopla-net.com/bale''http://bale.hopla-net.com">http://bons-plans.hopla-net.com/bale''http://bale.hopla-net.com</a>';
subs_filter '<a class="moz-txt-link-freetext" href="http://bons-plans.hopla-net.com/jura''http://jura.hopla-net.com">http://bons-plans.hopla-net.com/jura''http://jura.hopla-net.com</a>';
proxy_pass
<a href="http://hoplanet/VirtualHostBase/http/bons-plans.hopla-net.com:80/hopla-net/bons-plans/VirtualHostRoot/$true_uri" target="_blank" rel="nofollow">http://hoplanet/VirtualHostBase/http/bons-plans.hopla-net.com:80/hopla-net/bons-plans/VirtualHostRoot/$true_uri</a>;
break;
}

rewrite ^/(.*)
/VirtualHostBase/http/bons-plans.hopla-net.com:80/hopla-net/bons-plans/VirtualHostRoot/$1
last;

location / {
proxy_pass<a href="http://hoplanet" target="_blank" rel="nofollow">http://hoplanet</a>;
}

}

***********************************************************

Could you help me with that, please?

Thank you!

Martronic SA
Martial Moret






</pre>
  </body>
</html>