Repository navigation
Conversation
|
Download the artifacts for this pull request:
See Testing a PR. |
|
I don't have time to check this right now, but this looks pretty good, thank you for trying a solution 😄 |
tyler36
left a comment
There was a problem hiding this comment.
Works as described; warning does not appear when .htaccess file is present
Test DDEV v1.24.6
$ ddev -v
ddev version v1.24.6
$ ddev config --webserver-type=apache-fpm
$ touch .htaccess
$ ddev start
...
The index.php or index.html does not yet exist in
/home/user47/tmp/docroot-htaccess/index.*
so you may get 403 errors 'permission denied' from the browser until it does.
Don't worry about this if a later action
(like `ddev composer install`) will create the file.
...
Successfully started docroot-htaccess Test PR
$ ddev -v
ddev version v1.24.6-12-gcffa66a35
$ ddev start
...
(no warning)
Successfully started docroot-htaccess |
Could you please add to the OP to explain why we should skip the warning if a .htaccess is in the docroot? |
|
@n8-dev I meant on this PR. |
rfay
left a comment
There was a problem hiding this comment.
While we absolutely respect the Silverstripe community's request for this general feature, I'm not convinced this is the right solution. What's going on with silverstripe seems to be a very unusual server-side configuration, and I don't think it makes sense to have DDEV jump through hoops to solve a problem like that.
I also recognize that this is a pretty simple PR, but it's still likely to have unexpected consequences.
I guess as suggested in #7345 the way to solve it would be adding configuration to say "don't warn". But even that seems like jumping through modest hoops to solve a complexity introduced by one CMS and not even in the context of DDEV.
|
Closing to move the conversation back to the issue. |
The Issue
ddev startdocroot index.* check #7345How This PR Solves The Issue
Doesn't show warning for apache2 if there is
.htaccessfile in thedocrootdirectory.Example file is https://github.com/silverstripeltd/demo-project/blob/master/.htaccess
I decided not to check the contents of the
.htaccessfile because the main warning goal is already met.People who don't understand
docrootmight set it to a random folder that doesn't have the right files.Manual Testing Instructions
Automated Testing Overview
Release/Deployment Notes