darold / squidanalyzer

Squid Analyzer parses Squid proxy access log and reports general statistics about hits, bytes, users, networks, top URLs, and top second level domains. Statistic reports are oriented toward user and bandwidth control.
http://squidanalyzer.darold.net/
126 stars 36 forks source link

Blank pages #215

Closed sbdcunha closed 3 years ago

sbdcunha commented 3 years ago

I have recently installed squid analyzer and when i want to access it with the browser to test it squid-analyzer it displays only text and no images. here below are the details Centos 8 64 Bit squid version 4.4-8 apache 2.4.37-21

Attached is the sample

appreciate your thanks and advice

regards

simon

darold commented 3 years ago

This is because the path to the resources is broken. Adjust the value of WebUrl in squidanalyzer.conf to point to the URL where the resources are installed, the default value is /squidreport/ and the corresponding directory content following the apache configuration file is:

$ tree /var/www/squidanalyzer/
/var/www/squidanalyzer/
├── flotr2.js
├── images
│   ├── back-arrow.png
│   ├── cursor.png
│   ├── domain.png
│   ├── info.png
│   ├── logo-squidanalyzer.png
│   ├── network.png
│   └── user.png
├── sorttable.js
├── squidanalyzer.css

In your Apache configuration file you might have something like:

        Alias /squidreport /var/www/squidanalyzer
        <Directory /var/www/squidanalyzer>
            Options -Indexes +FollowSymLinks +MultiViews
            AllowOverride None
            Require all denied
            Require ip 192.168.1.0/24 127.0.0.1/32
        </Directory>

If the resources files are not present just copy them from the resources/ subdirectory of SquidAnalyzer sources.

sbdcunha commented 3 years ago

Dear Darold

Thanks a lot for the quick reply. but i did manage by get it working perfectly by using the weburl path of /squidreport.

Thanks Once again and appreciate your immediate reply

regards

simon

On Fri, Nov 20, 2020 at 11:19 AM Gilles Darold notifications@github.com wrote:

This is because the path to the resources is broken. Adjust the value of WebUrl in squidanalyzer.conf to point to the URL where the resources are installed, the default value is /squidreport/ and the corresponding directory content following the apache configuration file is:

$ tree /var/www/squidanalyzer/

/var/www/squidanalyzer/

├── flotr2.js

├── images

│ ├── back-arrow.png

│ ├── cursor.png

│ ├── domain.png

│ ├── info.png

│ ├── logo-squidanalyzer.png

│ ├── network.png

│ └── user.png

├── sorttable.js

├── squidanalyzer.css

In your Apache configuration file you might have something like:

    Alias /squidreport /var/www/squidanalyzer

    <Directory /var/www/squidanalyzer>

        Options -Indexes +FollowSymLinks +MultiViews

        AllowOverride None

        Require all denied

        Require ip 192.168.1.0/24 127.0.0.1/32

    </Directory>

If the resources files are not present just copy them from the resources/ subdirectory of SquidAnalyzer sources.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/darold/squidanalyzer/issues/215#issuecomment-731018338, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR2LTAS4HFTWBZ5LJ2HLQCDSQYRBLANCNFSM4T4LXYMA .