I have following directory layout:
/var/www/
example.com/
logs/
html/
stuff/
Apache is configured to normally serve from /var/www/example.com/html
I have configured webdav to work for the url https://example.com/server-admin
and allow access to the other dirs, too:
<VirtualHost>
...
Alias /server-admin /var/www/example.com/
<Location /server-admin >
Dav on
AllowOverride None
...
With AllowOverride None
I want to disable htaccess files so they don't break webdav operation.
This kind of works. But: if I upload an syntactically broken htaccess file everything falls apart with an 500 internal server error. I guess even so the file is not used, apache still parses it.
So I tried using AccessFilename .davaccess
to change it so some other name, which kind of works, but not in <Location>
but only globally in <VirtualHost>
.
So what to do? How to I disable htaccess in a <Location>
or how do I have to change layout in order for this to work?