I found how to solve the problem
I made the site available at the link:
http://mysite.com.localhost
The site worked but the forum gave an error 500.
Then I decided to return as it was
http://localhost/mysite.com
It worked. The forum has started to work.