mbolli / nfsen-ng

Responsive NetFlow visualizer built on top of nfdump tools.
Apache License 2.0
231 stars 43 forks source link

nginx working example solved #98

Closed johndoek131 closed 7 months ago

johndoek131 commented 7 months ago

First of all, thanks for this great software. I referenced the previous discussion but it didn't work for me because the graph didn't show. The problem lies in failing to GET /api/*. It took me days to come out a working example (at least for me). Hope it helps.

root   /var/www/;
index  index.html index.htm index.php;

location /nfsen-ng/ {
    alias   /var/www/nfsen-ng/frontend/;
}
location /api {
    rewrite ^/api/(.*)$ /nfsen-ng/backend/index.php?request=$1 redirect;
}
mbolli commented 7 months ago

Thanks, pinned!