M
M
Max Payne2017-09-12 16:45:58
Apache HTTP Server
Max Payne, 2017-09-12 16:45:58

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:
3def0d625473405daa70b4a982bbac51.jpg
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

2 answer(s)
V
Vladimir Mukovoz, 2017-09-12
@YardalGedal

My friend, what do you have? 0bb9977011a7499abae2b246551fcf1f.png
+ write
ServerName and ServerAlias
​​DirectoryIndex index.php index.html

T
Twelfth Doctor, 2017-09-12
@verdex

Firstly, you need to upload the files to the DocumentRoot
And secondly, specify the DirectoryIndex parameter in the virtual hosts config
DirectoryIndex index.php index.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question