Configure Apache to point to different directories for different root domain names. Help! ! ! !

  node.js, question

First, I simulated two domain names, as shown in the figure.
clipboard.png

Then I pointed to different directories for the two root domain names, as shown in the figure.

clipboard.png

Then sudo apachectl restart, finally, tried to visit, but the result was no good. Please tell me what was wrong with me?

clipboard.png

clipboard.png

The authority is also given

clipboard.png

403 Forbidden? Apache I have not used, but I encountered a 403 error when using the Nginx reverse proxy on the Mac because when a user needs to obtain a file, each of his parent folders needs executable permissions (x), so the solution is:Chmod -R o plus x <path >You can try to solve it. No, I hope it will help ~

Update: I see that you added the question and said the permission was given (read and write), but I said the executable permission (x), and not only the project folder, but also the entire path folder to the project. I don’t know if you understand …