I’m running nextcloud on my Raspberry Pi. I also have ModSecurity enabled running in the default configuration with the following changes:
setvar:‘tx.allowed_http_versions=HTTP/1.1 HTTP/2.0’, \ setvar:‘tx.allowed_methods=GET HEAD POST OPTIONS PROPFIND’
Besides this - I’ve added - to etc/apache2/apache2.conf
SecServerSignature " "
The problem I am facing is that after the WAF is turned, the page does not render correctly.
Here is error I see in the browser console:
Refused to apply style from ‘http://IP/nextcloud/index.php/login’ because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.
Can someone help me with this?
Please note that I'm currently hosting on an IP (example http://126.96.36.199/nextcloud/)