Closed (won't fix)
Project:
Provision
Version:
6.x-0.4-alpha3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Feb 2010 at 08:05 UTC
Updated:
4 Oct 2014 at 21:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Anonymous (not verified) commentedSo we have an inconsistency here, and more so, we probably shouldn't have duplication in the first place I think?
How come we don't just put that AllowOverride none into the provision_drupal_htaccess.tpl.php anyway?
Comment #2
Anonymous (not verified) commentedCommitted a fix. I left in the weird EOF AllowOverride thing, as there is obviously meant to be method in the madness. I dunno, taking all that out and sticking an AllowOverride none at the end of the provision_drupal_htaccess.tpl.php with a new line underneath it worked just as well... maybe I'm missing something.
Comment #3
guypaddock commentedI support this fix -- we have a custom-configured environment here, which means we're modifying a few of the template files. We need the ability for clients to use .htaccess files, but we don't want to modify the actual *code* of Provision. But, with the "AllowOverride none" option specified in code rather than the template, we have to modify the code.
Comment #4
guypaddock commentedCorrection: I mis-interpreted the fix. I don't think that the AllowOverride option should be specified in "verify.provision.inc" at all. All other relevant Apache options are specified in the template -- why put this one in code?
The attached patch moves the option out of code and into the template, while preserving the EOF functionality.
Comment #5
anarcat commentedThe reason that AllowOverride is outside of the main template is that I aim to simply drop the template from provision and use the platform's .htaccess instead. We shouldn't have to maintain our own copy of Drupal's .htaccess: we should just use it and add our own customization, if possible. In this particular case, it is possible.
The right way to fix this while keeping the ability to modify this through templates (which are aimed to be pluggable, btw) is to make provision_drupal_provision_apache_dir_config() use an extra template for that particular setting *or* simply to bite the bullet and start using the platform .htaccess *plus* our local template.
Comment #6
anarcat commentedSo short of starting to parse the .htaccess, i consider this a non-issue. With the latest git (f9d17fffdbc7), we directly include Drupal's .htaccess instead of maintaining our own copy. We append to the end of that file the configuration we require for aegir to function properly, but that's all.
To remove duplicates, you'd had to parse the resulting config file and eliminate duplicates, which is no small feat. If you are interested in doing that or think it's really necessary, feel free to reopen. I think that Apache does a better job at this than we could ever do ourselves, so I am closing this for now.
The place that change would need to happen is here:
...in _provision_apache_create_platform_config() in web_server/provision_apache.drush.inc:184.