Can you show us the output of the apachectl -S command ?
> On Nov 11, 2022, at 22:05, supp...@openmbox.net wrote:
>
> Hello
>
> I just created config files under /etc/apache2/sites-enabled directly.
>
> $ ls /etc/apache2/sites-enabled
> lrwxrwxrwx 1 root root 35 Oct 20 14:42 000-default.conf
Delete all that Rewrite voodoo and just redirect.
ServerName example.com
ServerAlias www.example.com
Redirect permanent / https://example.com/
IMPORTANT NOTE:
Also you are configuring all that access to your SYSTEM root directory.
is the whole filesystem path there, not an url path.