Pass variable to SSI template with nginx
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Test your knowlege!</title> | |
</head> | |
<body> | |
<h1>I answered <!--# echo var="count" --> questions correctly!</h1> | |
</body> | |
</html> |
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