Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Pass variable to SSI template with nginx
<!DOCTYPE html>
<meta charset="utf-8">
<title>Test your knowlege!</title>
<h1>I answered <!--# echo var="count" --> questions correctly!</h1>
server {
location ~ ^/result/(?<count>[0-9]|10)/$ {
ssi on;
alias /var/www/share;
try_files /index.html =404;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment