Hi there!
I am having problem creating virtualhost in Apache
If I create a Virtual Server Apache does not create the VirtualHost
[image1]
[image2]
[image3]
[image4]
The same problem occurs if I do it directly from the Apache Server creating a Virtual Host
[image5]
[image6]
These are all the modules activated in Apache: [image7]
The Virtual Servers created before work perfectly.
[image8]
[image9]
I do not know the problem, suddenly it has stopped working.
What would be the solution?
If you need more information, I can gladly provide it.
Thank you very much in advance!!,
All the best,
Seems like Webmin is having trouble reading your Apache config file. Which Linux distribution are you running there?
Hello Jaime, very good,
The distribution is Ubuntu 18.04
[image1]
And this is the configuration in Apache Module:
[image2]
[image3]
[image4]
Could it be a file permission issue?
These are the permissions currently:
[image5]
Anything else that can help you can ask me
I still can't get it to work, it seems that it happened when updating to Apache 2.4.29
Thank you very much for your help.
Could you attach the Apache config as a text file attachment?
Yes, of course!, here you have it
I just saw a strange behavior, instead of adding the virtualhost inside the sites-available directory create a sites-available file and put it all inside
That is, the new virtualhost is adding it to the system-available file instead of inside the directory as usual
I have already seen the error
It seems that the Apache Module configuration has been changed in some way
The configuration for File or directory to add virtual servers to was in: / etc / apache2 / sites-available
[image 1]
But actually the correct configuration in my case is / etc / apache2 / site-enabled
[image2]
For some reason this has been changed, I do not know if in any Apache2 update or perhaps restoring a copy of a Virtual Server
Now if I can create virtualhost in Apache and it works correctly!
Thank you very much for your help!
If you need more information about this you can tell me
All the best,
Usually, webmin will create new Apache configs in sites-available and then symlink to them from sites-enabled.