Answer the question
In order to leave comments, you need to log in
Why don't virtual hosts work in Apache?
I set up three virtual hosts, but, for some reason, none of them work as they should.
Configurations:
https://pastebin.com/mPEyxuBH
https://pastebin.com/55NBH1HV
https://pastebin.com/zdfpbwJg
I get the following picture after going to any site:
Attached apache2.conf -- https:// pastebin.com/gKsJZXWQ
I think that there may be a problem with the rights to the folders, but I doubt it.
Answer the question
In order to leave comments, you need to log in
My friend, what do you have?
+ write
ServerName and ServerAlias
DirectoryIndex index.php index.html
Firstly, you need to upload the files to the DocumentRoot
And secondly, specify the DirectoryIndex parameter in the virtual hosts configDirectoryIndex index.php index.html
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question