Hi, Please remove the trailing slash from the --http-prefix and it will work:
~/code/ntopng$ sudo ./ntopng -Z /ntopng [image: Inline image 1] Simone On Mon, May 9, 2016 at 8:24 PM, Gerhard Mourani <[email protected]> wrote: > Hello list, > > I’m using ntopng 2.2 and this is what the man page said about proxying > ntopng. > > -Z|--http-prefix <prefix> > HTTP prefix to be prepended to URLs. This is useful when using ntopng > behind a proxy. > E.g. if you want to make the ntopng web interface accessible through a > proxy > at a certain IP address with the /ntopng/ base URL and you have the > following > lines in your proxy's configuration: > > ProxyPass /ntopng/ http://192.168.0.3:3000/ntopng/ > ProxyPassReverse /ntopng/ http://192.168.0.3:3000/ntopng/ > > you must use ntopng with -Z "/ntopng/“ > > So I’ve tried to implement this on my configuration but without success. > When I try to access the page -> https://192.168.2.227/ntopng/ I receive > the following error from Apache: > > *Error 404: Not Found* > *File not found* > > Here my Apache conf file for ntopng proxy setting: > > ProxyRequests Off > SSLProxyEngine On > <Proxy *> > Options Indexes FollowSymLinks MultiViews > order allow,deny > allow from all > AuthType Basic > AuthBasicProvider file > AuthName “ntopng auth" > AuthUserFile /etc/httpd/htntopng > Require valid-user > Allow from 127.0.0.1 > </Proxy> > > ProxyPass /ntopng/ https://192.168.2.227:3001/ntopng/ > ProxyPassReverse /ntopng/ https://192.168.2.227:3001/ntopng/ > > Here my ntopng.conf file: > > --interface tcp://127.0.0.1:5556 > --packet-filter "ip and not proto ipv6 and not ether host > ff:ff:ff:ff:ff:ff and not net (224.0.0.0/8 or 239.0.0.0/8) and not host > (192.168.2.227)" > --local-networks 192.168.2.0/24 > --daemon > --user ntopng > --pid /var/run/ntopng/ntopng.pid > --http-port 0 > --https-port 3001 > --data-dir /var/lib/nst/ntopng > --dns-mode 1 > --disable-autologout > --disable-login 1 > --sticky-hosts none > *--http-prefix /ntopng/* > > Gerhard, > > _______________________________________________ > Ntop mailing list > [email protected] > http://listgateway.unipi.it/mailman/listinfo/ntop >
_______________________________________________ Ntop mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop
