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 support for OpenLiteSpeed webservers. #24666

Merged
merged 1 commit into from
Oct 4, 2022

Conversation

kaspernowak
Copy link
Contributor

@kaspernowak kaspernowak commented Oct 3, 2022

Overview

The current rewrite rules existing in the created .htaccess files are only supported for Apache webservers, and leaves files exposed on OpenLiteSpeed webservers by default. This is the easiest way to add support for OpenLiteSpeed 1.4.38+.
This pull request was born from this mattermost chat discussion

Before

Before the rewrite rules for OpenLiteSpeed are added to the .htaccess files, the CiviCRM system status produces warnings about Private Files being Readable when running on a drupal 9 site on a OpenLiteSpeed webserver.
image

After

After the rewrite rules for OpenLiteSpeed are added to the .htaccess files, the CiviCRM system status no longer produces warnings about Private Files being Readable when running on a drupal 9 site on a OpenLiteSpeed webserver.

Notes

To make sure this will work on OpenLiteSpeed, Enable Rewrite and Auto Load from .htaccess has to be set to Yes
in the Rewrite Control settings of the vhost.
image

The current rewrite rules existing in the created .htaccess files are only supported for Apache webservers, and leaves files exposed on OpenLiteSpeed webservers by default. This is the easiest way to add support for OpenLiteSpeed 1.4.38+.
@civicrm-builder
Copy link

Can one of the admins verify this patch?

@civibot
Copy link

civibot bot commented Oct 3, 2022

(Standard links)

@civibot civibot bot added the master label Oct 3, 2022
@seamuslee001
Copy link
Contributor

Jenkins add to whitelist

@mlutfy
Copy link
Member

mlutfy commented Oct 4, 2022

jenkins, test this please

@demeritcowboy
Copy link
Contributor

I'm going to merge because it has no effect on apache 2.4 and I happen to still have a copy of apache 2.2 on my computer and the .htaccess still restricts properly there. And we know nginx is unaffected.

@demeritcowboy demeritcowboy merged commit 87cf883 into civicrm:master Oct 4, 2022
@demeritcowboy
Copy link
Contributor

@kaspernowak Can you do another PR to add yourself to https://github.com/civicrm/civicrm-core/blob/master/contributor-key.yml, for release note credits etc ?

@kaspernowak
Copy link
Contributor Author

@demeritcowboy thank you!
I just created an add as contributor PR here: #24673.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants