I have a multi site setup where files in the document root chdir to a drupal base directory. Similar to http://justinhileman.info/articles/a-more-secure-drupal-multisite-install
This means however that the file_get_contents('.htaccess') in boost.install is looking for the htaccess file in my base dir instead of the Apache document root.
Although the functioning of boost is not impaired, the status page complains about the .htaccess file not being properly updated.
My solution is to add dirname($_SERVER["SCRIPT_FILENAME"]) to the .htaccess filename as in the attached patch. This should, as far as I can tell, not pose a problem for other setups.
If it does, then please let me know so we can find a suitable solution.
| Comment | File | Size | Author |
|---|---|---|---|
| boost-htaccess_validation.patch | 624 bytes | helmo |
Comments
Comment #1
mikeytown2 commentedcommitted
Comment #3
jumoke commentedI have multisite install and have tried everything. The cached pages get created and my status report says i am fine, yet the pages don't get served. I get no boost at the bottom of my pagesource.
I followed the Justin Hileman's install and my drupal folder is the base directly like you have above. Is there anything you think i may be doing wrong?
Settings are:
%{HTTP_HOST}
%{DOCUMENT_ROOT}
I copied the code generated into an .htaccess in my multisite (exsitename) directory (not the drupal directory).
.htaccess as follows: please help.
Comment #4
helmo commentedPlease open a new issue with the support category for this sort of question.
You can always refer to this issue if it seems relevant, but changing the topic of this issue is not really workable.