New installation of vanilla "The requested URL was not found on this server."

I just installed vanilla forum and when I click on link for register or discussion or categories I always get the same error. "The requested URL was not found on this server."
I also disabled all plugins and it is the same, I use centos 8. Any idea what can be wrong?
Tagged:
0
Comments
Do you have pretty URl's enabled?
https://open.vanillaforums.com/discussion/comment/220157/#Comment_220157
I don't understand it should be enabled or not??
mod rewrite is on.
I laso tried
RewriteBase /
and it is the same
Pretty urls should be enabled.
Check the url when you have loaded the forum page
Also, check the url for the register button/link
Does it contain
index.php?p=/
If yes, then pretty urls are not enabled
No still doesn't work
I deleted old forum and installed it new and it is the same.
I have installed centos 8 and mod_rewrite
it doesn't contain index.php?p=/
it is only
The requested URL was not found on this server.
https://akvarij.eu/discussions
I have deleted now apache and intalled nginx and now it works