I’m new in the world of nixos. I got my apache-server to run and have my vhost up and running. but my clean urls don’t work till now. According to my phpinfo the module mod_rewrite is loaded:
In my configuration.nix I wrote the following parts for the apache:
# Web server
networking.extraHosts =
''
127.0.0.1 mywebsite.de
'';
services.httpd.adminAddr = "kontakt@xxxxxxxx.de";
services.httpd.enable = true;
services.httpd.enablePHP = true;
services.httpd.phpOptions =
''
post_max_size = 200M
max_execution_time = 6000
max_input_time = 3000
mbstring.http_input = pass
mbstring.http_output = pass
mbstring.internal_encoding = pass
memory_limit = 512M;
allow_url_include = On;
'';
services.httpd.virtualHosts =
[
{
serverAliases = ["mywebsite.de"];
hostName = "mywebsite.de";
documentRoot = "/home/Websites/mywebsite.de";
#enableUserDir = true;
extraConfig =
''
<Directory "/home/Websites/mywebsite.de/">
DirectoryIndex index.php index.htm index.html
Allow from *
Options FollowSymLinks
AllowOverride All
</Directory>
'';
}
];
But no result!
Can you give me a hint?
I can also send you my whole configuration.nix or my /nix/store/xxxxxxxxxxx-httpd.conf if you like
Thnx
Bavra