Forum: NGINX SSI stubs/blocks

Posted by Kasper Grubbe (Guest)
on 2012-10-25 10:48
(Received via mailing list)
Hello,

I am using nginx/1.2.3 on my server, and tried to use this in my SSI
includes:

<!--# block name="#{unique}" --><!--# endblock -->
<!--# include virtual="#{url}" stub="#{unique}" -->

However, this doesn't seem to work. I just get a blank page, and nothing 
is
included.

Is my NGINX too old, or do I need to it differently? I am following the
example mentioned here:
http://nginx.org/en/docs/http/ngx_http_ssi_module.html


Greetings,
Kasper
Posted by Valentin V. Bartenev (Guest)
on 2012-10-25 11:06
(Received via mailing list)
On Thursday 25 October 2012 12:48:28 Kasper Grubbe wrote:
> [...]
#{url} and #{unique} don't look like valid values.

 wbr, Valentin V. Bartenev

--
http://nginx.com/support.html
http://nginx.org/en/donation.html
Posted by Kasper Grubbe (Guest)
on 2012-10-25 11:09
(Received via mailing list)
2012/10/25 Valentin V. Bartenev <ne@vbart.ru>

> is
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>

Sorry, that is from my Ruby code, the rendered output would be this:

<!--# block name="ss116812" --><!--# endblock -->
<!--# include virtual="/poll/sidebar_widget_fragment?poll=" 
stub="ss116812"
-->

And after running it through NGINX, it would just not render anything.
Posted by Valentin V. Bartenev (Guest)
on 2012-10-25 11:16
(Received via mailing list)
On Thursday 25 October 2012 13:08:45 Kasper Grubbe wrote:
> [...]
>
> Sorry, that is from my Ruby code, the rendered output would be this:
>
> <!--# block name="ss116812" --><!--# endblock -->
> <!--# include virtual="/poll/sidebar_widget_fragment?poll=" stub="ss116812"
> -->
>
> And after running it through NGINX, it would just not render anything.

Are you sure, that /poll/sidebar_widget_fragment?poll= returns something 
with
200 status code?

 wbr, Valentin V. Bartenev

--
http://nginx.com/support.html
http://nginx.org/en/donation.html
Posted by Kasper Grubbe (Guest)
on 2012-10-25 11:49
(Received via mailing list)
2012/10/25 Valentin V. Bartenev <ne@vbart.ru>

> > And after running it through NGINX, it would just not render anything.
>
> Are you sure, that /poll/sidebar_widget_fragment?poll= returns something
> with
> 200 status code?


Yep, http://woman.dk/poll/sidebar_widget_fragment?poll=
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.