Gerhard,

please use the ntopng github issue tracker to report the problems.

thank you,
Simone

On Tue, May 10, 2016 at 5:22 PM, Gerhard Mourani <[email protected]> wrote:

> Hi Simone,
>
> Thanks, you’re right it’s working now. Except some minor link problem into
> the “top_hosts.lua" page and the search box which doesn’t seem to use the
> proxy.
>
> Gerhard,
>
> On May 10, 2016, at 6:20 AM, Simone Mainardi <[email protected]> wrote:
>
> Hi,
>
> Please remove the trailing slash from the --http-prefix and it will work:
>
> ~/code/ntopng$ sudo ./ntopng -Z /ntopng
>
> <image.png>
>
>
>
> 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
>
>
>
> _______________________________________________
> Ntop mailing list
> [email protected]
> http://listgateway.unipi.it/mailman/listinfo/ntop
>
_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop

Reply via email to