如何使用NGINX模板?

有没有办法在nginx模板? 例如,如果我有这样一个文件:

{header} <h1>This is a header</h1> This is not a header {footer} 

然后用NGINXreplace{header} ,比如说:

 <!DOCTYPE html> <html> <head><title>This is a title</title></head> <body> 

{footer}有类似的东西。 这样做的目的是为了能够在html文件之间共享代码。 这是可能的nginx,或者我将不得不使用反向代理到不同的服务器程序,可以做模板?

不,你不能用nginx做到这一点,你必须find一个不同的方式来做到这一点。