I want to setup Apache webserver for a Magento project in NixOS and have this expression in configuration.nix:
services.httpd = {
enable =true;
enablePHP =true;
phpPackage = myPHP;
extraModules = [ "version" ];
user = "www-data";
group = "www-data";
virtualHosts."example.com" = {
documentRoot = "/var/www/html/magento2/pub";
};
};
It generates this piece of code in httpd.conf:
<Directory "/var/www/html/magento2/pub">
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
I want to change the override settings to AllowOverride All in order to make the website work. I know I can add extraConfig field, but this would only append more config code, not alter the existing one.