-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Allow a .htaccess-lando to override .htaccess #38
Comments
How does your EDIT: I see you took them from the services. Could be a bug in the config - but I've never use that feature before. |
@rabauss I changed the |
Yes, this is not working for me either. Looking at the |
Hi everyone! This variation of their code did, though:
I'm replacing the line in my Apache service that calls my client's .htaccess and calling the file .htaccess-lando instead. Just remember to add this code to a script, and call it from your .lando.yml file at the services key like this:
Keep being awesome! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions and please check out this if you are wondering why we auto close issues. |
Apache looks for `.htaccess` files in the order listed in `AccessFileName`, reading only the first one it finds. Lando is supposed to change that list, but it isn't working. See: https://github.com/lando/lando/issues/2277 This project needs the updated `AccessFileName` list so the `.htaccess` file on the server can include Shibboleth statements that will cause errors in Lando, while the local, Lando-specific file, excludes them.
Apache looks for `.htaccess` files in the order listed in `AccessFileName`, reading only the first one it finds. Lando is supposed to change that list, but it isn't working. See: https://github.com/lando/lando/issues/2277 This project needs the updated `AccessFileName` list so the `.htaccess` file on the server can include Shibboleth statements that will cause errors in Lando, while the local, Lando-specific file, excludes them.
When will this hotfix be implemented natively? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions and please check out this if you are wondering why we auto close issues. |
...and this is still totally an issue. Taking a look at this after some folks mentioned it on Slack. |
Ok, so in some ways the "root issue" here is one of documentation. The Lando Apache service accepts a That said, I think we've had enough consistent interest/confusion in this feature that it should be added to the PHP service. I'm moving this ticket to the lando/php project, steps for implementation are to...
|
...also noting that when we re-do the PHP service, we should have it consume the Lando Apache service. |
Thanks @anacolautti for documenting the workaround. |
I'm trying to override the .htaccess file as instructed in https://docs.lando.dev/config/apache.html#configuration. Adding .htaccess-lando next to the Drupal root .htaccess file doesn't do anything. I have tried rebuilding and also tried adding the custom httpd.conf file taken from https://github.com/lando/lando/tree/master/plugins/lando-services/services/apache. Any ideas how I can get this working?
Running Lando v3.0.3 on Windows 10.
The text was updated successfully, but these errors were encountered: