Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.htaccess compatibility issue in /misc/usr/ on some server configurations #10700

Open
mirabyte opened this issue Oct 6, 2016 · 2 comments
Open
Labels
Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users.

Comments

@mirabyte
Copy link

mirabyte commented Oct 6, 2016

The /misc/ folder of the Piwik installation folder contains a .htaccess that basically blocks all access to the folder and it's subfolders.

However, the /misc/usr/ folder contains files like the custom logo that can be set which of course needs to be accessable by a normal HTTP GET. Therefore, the /usr/ folder has it's own .htaccess file which (re-)allows access to static files like e.g. PNG or JPG images.

The problem is that the code in the .htaccess file of the /usr/ folder does not unblock access to these files in all cases; there are various conditions that seem to allow access to the files for various server configurations but in my case these are not sufficient. I had to add the following code before the closing tag to make it work:

<IfModule mod_access_compat>
        Order Allow,Deny
    Allow from all
</IfModule>

Maybe someone with profound Apache knowledge should take a look that that file in order to make it more compatible. Because otherwise the custom logo is not shown in the Piwik GUI!

@mattab
Copy link
Member

mattab commented Nov 12, 2016

Hi @mirabyte - when the logos were not loaded, what was the full error message in your apache log file? maybe it has some more indication about what was causing the disallow

@mattab mattab added the Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users. label Nov 12, 2016
@mattab mattab added this to the Mid term milestone Nov 12, 2016
@mirabyte
Copy link
Author

Hi, I'm getting:
[Tue Jan 10 14:43:41 2017] [access_compat:error] [pid 7369] [client 188.136.47.218] [host XXXXX.com] AH01797: client denied by server configuration: /XXXXXXX/piwik/misc/user/logo-header.png

Looks like a problem with access_compat to me, but unfortuntely I'm not an expert on this module...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users.
Projects
None yet
Development

No branches or pull requests

2 participants