Nginx Substitutions Filter problem
Martronic SA
martronic at martronic.ch
Thu Sep 29 12:11:17 UTC 2011
hi
thank you very much for your help.
yes it was the gzip problematic.
maitenent it works great
Thanks
Martial
> Sorry. I can't find any log from my substitutions module in your debug log.
>
> And I find the possible problem. The response from backend server is
> gzipped. You can compress the response with Nginx's gzip module.
>
> You should disable the gzipped response from backend server, like this:
>
> proxy_set_header Accept-Encoding "";
>
>
> 2011/9/29 Martronic SA <martronic at martronic.ch>
>
>> hi
>>
>> log file and configuration file for nginx hopla.net are attached
>>
>> Thanks
>> Martial
>>
>>
>> > It works in my box. Can you show me your debug log?
>> >
>> > http://wiki.nginx.org/Debugging
>> >
>> > Do't use this in the production server. The debug log will be very large.
>> >
>> >
>> > 2011/9/28 Martronic SA <martronic at martronic.ch>
>> >
>> >> full source attachment
>> >> Thanks.
>> >>
>> >>
>> >> <a id="portal-logo" href="http://bale.hopla.net" accesskey="1"
>> >> class="visualNoPrint"><img
>> >> src="http://bale.hopla.net/portal_logo/image" alt="Logo" title="Logo
>> >> Hopla-Net" height="175"
>> >> width="230" /></a>
>> >>
>> >> <div id="solgemabandeau" class="visualNoPrint">
>> >>
>> >> <div id="portal-bandeau">
>> >> <div id="inner-portal-bandeau" class="bannersContainer">
>> >>
>> >> <div style="position:relative; display: block"
>> >> id="carousel-banner-0"
>> >> class="bando.jpg carousel-banner selected">
>> >> <div style="height:200px; width:100%; background:transparent
>> >> url(http://bale.hopla.net/bando.jpg) no-repeat scroll left top;"
>> >> title="Une maison
>> >> dans un jardin, nouveau bandeau Hopla pour le printemps."
>> >> class="bandeau_image"></div>
>> >> </div>
>> >>
>> >>
>> >> <div style="display: none" id="carousel-banner-1"
>> >> class="bandeauhoplabale.jpg
>> >> carousel-banner">
>> >> <div style="height:200px; width:100%; background:transparent
>> >> url(http://bale.hopla.net/bandeauhoplabale.jpg) no-repeat scroll left
>> >> top;"
>> >> title="Le printemps est de retour sur St Louis et B¨¡le"
>> >> class="bandeau_image"></div>
>> >> </div>
>> >>
>> >> <span class="bandeauTopLeft"></span>
>> >>
>> >> <span class="bandeauTopRight"></span>
>> >> <span class="bandeauBottomLeft"></span>
>> >> <span class="bandeauBottomRight"></span>
>> >> </div>
>> >> </div>
>> >>
>> >> </div>
>> >>
>> >> > Can you show me your source page?
>> >> >
>> >> > Thanks.
>> >> >
>> >> > 2011/9/27 Martronic SA <martronic at martronic.ch>
>> >> >
>> >> >> Hello,
>> >> >>
>> >> >> We are using the "Substitutions Filter module"
>> >> >> to replace html content in our pages.
>> >> >>
>> >> >> Our configuration is :
>> >> >>
>> >> >> location /{
>> >> >> subs_filter_types text/html text/xml;
>> >> >> subs_filter 'http://bale.hopla.net/bons-**plans<
>> >> http://bale.hopla.net/bons-plans>'
>> >> >> 'http://bons-plans.hopla.net';
>> >> >> subs_filter 'id="portal-logo" href="http://bale.hopla.net"'
>> >> >> 'id="portal-logo" href="http://www.hopla.net"';
>> >> >> }
>> >> >>
>> >> >> The first substitution is working, but the second not.
>> >> >> Are we missing something? Is the "space" supported in substitution
>> >> module?
>> >> >>
>> >> >> Thank you for your help!
>> >> >>
>> >> >> Martronic SA
>> >> >>
>> >> >> nginx -V
>> >> >> nginx: nginx version: nginx/1.1.4
>> >> >> nginx: built by gcc 4.3.2 (Debian 4.3.2-1.1)
>> >> >> nginx: TLS SNI support enabled
>> >> >> nginx: configure arguments: --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
>> >> >> --with-http_dav_module
>> >> --http-client-body-temp-path=/**var/lib/nginx/body
>> >> >> --with-http_ssl_module
>> >> >> --http-proxy-temp-path=/var/**lib/nginx/proxy
>> >> >> --with-http_stub_status_module
>> >> >> --http-fastcgi-temp-path=/var/**lib/nginx/fastcgi
>> >> >> --add-module=/var/lib/**substitutions4nginx-read-only
>> >> >>
>> >> >>
>> >> >>
>> >> >> ______________________________**_________________
>> >> >> nginx mailing list
>> >> >> nginx at nginx.org
>> >> >> http://mailman.nginx.org/**mailman/listinfo/nginx<
>> >> http://mailman.nginx.org/mailman/listinfo/nginx>
>> >> >>
>> >> > _______________________________________________
>> >> > nginx mailing list
>> >> > nginx at nginx.org
>> >> > http://mailman.nginx.org/mailman/listinfo/nginx
>> >>
>> >>
>> >>
>> >> _______________________________________________
>> >> nginx mailing list
>> >> nginx at nginx.org
>> >> http://mailman.nginx.org/mailman/listinfo/nginx
>> >>
>> > _______________________________________________
>> > nginx mailing list
>> > nginx at nginx.org
>> > http://mailman.nginx.org/mailman/listinfo/nginx
>>
>> _______________________________________________
>> nginx mailing list
>> nginx at nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx
>>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
More information about the nginx
mailing list