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

Make .htaccess play nicely with OpenLiteSpeed servers #20325

Open
atom-box opened this issue Feb 7, 2023 · 2 comments
Open

Make .htaccess play nicely with OpenLiteSpeed servers #20325

atom-box opened this issue Feb 7, 2023 · 2 comments
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

Comments

@atom-box
Copy link
Contributor

atom-box commented Feb 7, 2023

A user has made his instance integrate well with OpenLiteSpeed by adding three lines to Matomo.
They suggest adding these same lines so that all OpenLiteSpeed users can benefit.

Hello, I am using your excellent product on a dedicated server running the http server "openlitespeed".
openlitespeed (open source version of litespeed) is able to read .htaccess, just like apache BUT to a certain limit unfortunately.

In fact, I have just noticed that the .htaccess you put in, for example, directories like tmp/ and config/ contain an instruction that openlitespeed does not understand.
Quite "basic", it is unfortunately the "deny all" which is not interpreted by openlitespeed.

In order to correct this it is necessary to add this type of block:

<IfModule mod_litespeed.c>
RewriteRule ^(.*)$ - [F,L]
</IfModule>

By adding this inside a <Files "*"> tag it's functional and doesn't interfere with the proper functioning of your product under apache / nginx or whatever.
Is it possible to take this into account so that when there is an update to the product, people who are in the same situation as me will find themselves having to rewrite the various .htaccess please? :)
This message is in no way a reproach, just a suggestion as you indicate in the comments of these famous .htaccess.

Thank you in advance and thank you again for providing everyone with such a credible alternative to google analytics!

@atom-box atom-box added Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. To Triage An issue awaiting triage by a Matomo core team member labels Feb 7, 2023
@sgiehl sgiehl removed the To Triage An issue awaiting triage by a Matomo core team member label Feb 7, 2023
@sgiehl sgiehl added this to the For Prioritization milestone Feb 7, 2023
@ahabuda
Copy link

ahabuda commented Aug 19, 2024

Something new? With every major update I have to manually overwrite .htaccess files in several directories. It's a bit of a pain. The above solution would definitely improve the Matomo experience for OpenLiteSpeed ​​server users.

@larsauswsw
Copy link

I would like to have this too, because we are using Matomo with LiteSpeed server, too.
On the system check page we have still the problem, that the directories are readable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

4 participants