I’m trying some stuff for the moment and now it’s trying to display the content of a log file in a HTML page.
So, I add ssi on; in my Nginx .conf file and add this to the HTML page :
<!--#include file="../../../../var/log/nginx/logs.access.log" -->
The path is good but I’m always having this error :
[an error occurred while processing the directive]
Would you have any idea ?
<!--#include file=in nginx is the same thing as<!--# include virtual=, so../../../../var/log/nginx/logs.access.logdoesn’t look like valid request.But you can add location like this:
and use
<!--#include file="/logs.access.log" -->accordingly.