MeSo2
(Nathaniel)
December 21, 2017, 6:59pm
#1
For some time now (since v1 I think…) the main tab “All Websites” is producing a page that is note helpful at all. It is difficult to explain, so here is a link to what I get:
Lukas
(Lukas Winkler)
December 21, 2017, 7:11pm
#2
Hi,
Can you check the Javascript console of your browser’s developer tools if there is any error (or any failed request on the network tab)
Are you using any adblocker or something similar?
MeSo2
(Nathaniel)
December 21, 2017, 11:08pm
#3
I get 404 Not Found status on logo.svg
The code must be pulling my IP - and that will never work the way I have Apache and IIS setup.
Lukas
(Lukas Winkler)
December 22, 2017, 9:18am
#4
Hi,
I remember more people having such an issue when using a reverse proxy. You can read about it here:
opened 05:58PM - 03 Jun 17 UTC
closed 10:57PM - 19 Nov 17 UTC
There are three issues I have, and they are all related to the proxy setup probl… em I am experiencing.
1) ======
On the login page located here `https://www.mydomainname.com/piwik/` I get a broken logo image. The logo image is located on the server at `http://192.168.1.1:8080/plugins/Morpheus/images/logo.svg`. But somehow the proxy (or piwik) responds that the logo.svg file is located here: `https://www.mydomainname.com/plugins/Morpheus/images/logo.svg` which is wrong, where in fact it should be `https://www.mydomainname.com/piwik/plugins/Morpheus/images/logo.svg`. Somehow `/piwik/` gets dropped.
2) ======
Immediately after logging in I get a redirect to a page that prompts: `No input file specified.` (or a redirect to `https://www.mydomainname.com/` instead of `https://www.mydomainname.com/piwik/`) It is only after clicking back on the browser that I get redirected to the piwik website. Somehow the piwik code truncates the piwik folder during the redirect right after a successful login (back to the root folder.) This redirect brakes the page.
3) =====
The "All Websites" page is not working (not giving me any data), only the "Dashboard" page works. "Add a new website" goes to `https://www.mydomainname.com/?module=SitesManager&action=index&showaddsite=1&period=range&date=previous30&idSite=1` but it should go to `https://www.mydomainname.com/piwik/?module=SitesManager&action=index&showaddsite=1&period=range&date=previous30&idSite=1`
Same issue as issue 1 and 2, a redirect dropping the working folder I am in.
=== my setup ============
I am running Ubuntu, hosting VM (VirtualBox) Win10 serving:
Piwik 3.0.4 (running on IIS)
Apache 2.4 listening to :80 and :443
Apache proxy from `https://www.mydomainname.com/piwik/` to `http://192.168.1.1:8080`
IIS 10 is hosting Piwik on `http://192.168.1.1:8080`
relevant parts of my httpd-ssl.conf file
```
<IfModule mod_proxy.c>
ProxyRequests Off
ProxyPass / http://192.168.1.1:82/
ProxyPassReverse / http://192.168.1.1:82/
ProxyPass /piwik/ http://192.168.1.1:8080/
ProxyPassReverse /piwik/ http://192.168.1.1:8080/
RewriteRule ^(.+)$ https://www.mydomainname.com/$1 [P,L]
</IfModule>
<Proxy "http://192.168.1.1:8080">
SetOutputFilter proxy-html
ProxyHTMLEnable on
ProxyHTMLExtended on
ProxyHTMLURLMap http://192.168.1.1:8080 https://www.mydomainname.com/piwik/
</Proxy>
```
my piwik global.ini.php file is set to:
```
force_ssl = 0
assume_secure_protocol = 0
;proxy_host_headers[] = HTTP_X_FORWARDED_HOST ; List of proxy headers for host IP addresses
[proxy]
host = ; Proxy host
port = ; Proxy port
```
I tried `host = 192.168.1.1; ` `port = 8080;` -- but it did not fix the issue.