I prefer to run my apache virtualhost sites with AllowOverride none. But
while running drupal you need those .htaccess file contents. To get those
contents at Apache startup for each vhost config.
<VirtualHost *:80>
..
..
<Directory /var/www/dev-web01>
AllowOverride none
Include /var/www/dev-web01/.htaccess
</Directory>
<Directory /var/www/dev-web01/sites/default/files>
Include /var/www/dev-web01/sites/default/files/.htaccess
</Directory>
</VirtualHost>
Problem is that these paths /var/www/ etc.. are relative to the chroot
root. But Apache doesn't read those files relative to the chroot. Apache
at startup is looking at /opt/chroot/var/www ....
Is there a better way to do this? I realize that including a file from
user space is not a good idea either.
Cheers
Derek
|