0

I'm trying to get some SSI calls setup on a .html page with nginx. The following works fine:

        <center><!--# include file="total.txt" -->
            <br /><br /><a href="donate.html">Do your part - donate!</a>
        </center>

enter image description here

...but this one comes up as garbage (it should show a calendar, and works fine when I call the script manually in the browser);

<center><!--# include virtual="cal.cgi" --></center>

enter image description here

I have SSI enabled in the location / block:

location / {

    ssi on;

    # all the other stuff
}

What am I doing wrong?

Andrew Newby
  • 1,102
  • 2
  • 25
  • 58
  • That garbage looks like Latin rendered as UTF-8. Make sure that you are using a consistent CHARSET throughout. – Richard Smith May 09 '17 at 16:39
  • @RichardSmith thanks for the reply. I'm not sure its that. The content is only basic stuff like: `
    [
    – Andrew Newby May 09 '17 at 16:53
  • Mmm ok, so this seems to be an issue with me doing a proxy_pass to Apache, from nginx. The only way I've managed to get it to work is by using a `$.get()` ajax request to grab the contents, and then place it on the page. Not ideal, but I've already wasted too long on this :( – Andrew Newby May 10 '17 at 05:33

0 Answers0