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 files should be generated also for non-apache servers #9810

Closed
rob006 opened this issue Feb 19, 2016 · 1 comment
Closed

.htaccess files should be generated also for non-apache servers #9810

rob006 opened this issue Feb 19, 2016 · 1 comment
Labels
answered For when a question was asked and we referred to forum or answered it. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

Comments

@rob006
Copy link

rob006 commented Feb 19, 2016

Right now .htaccess files with some security rules are generated only for Apache. But not only Apache can handle .htaccess files - I use shared hosting with nginx, but with module which allow to use most of apache directives in .htaccess files, so basically it works similar to Apache. But piwik does not generate .htaccess files, even if my server can handle it.
Is there any reason for not generating .htaccess files regardless of used webserver?

@tsteur
Copy link
Member

tsteur commented Feb 22, 2016

Good point. I'm not sure either and sounds valid to simply always create the file in case it can be read. If someone is using another webserver, and they get delivered to the UI, there should not be much sensitive data.

FYI: The check for this is done here: https://github.com/piwik/piwik/blob/2.16.1-b1/plugins/Installation/ServerFilesGenerator.php#L85

@tsteur tsteur added the Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. label Feb 22, 2016
@mattab mattab closed this as completed in 4c334be Mar 15, 2016
@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Oct 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it. 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

3 participants