Error in creating a new virtual server

SYSTEM INFORMATION
OS type and version AlmaLinux 8
Webmin version 2.202
Virtualmin version 7.20.2
Webserver version Nginx 1.14.1
Related packages SUGGESTED
hi to all I have ngix on my server, I already install the first website and it works very well.
But I want to create another website by going on to create a virtual server.
if I create it in ecrase the first configuration of the first site and display this page by default.

So how to fix a that each server will have its own directory and configuration file

To create a new virtual server (known in layman’s terms as a domain or website) we use the menu item in Virtualmin GUI captioned “Create Virtual Server”. This causes a series of operations on the server in which creates a user, files and directories owned by this user, and a configuration of services via which web, mail and ftp is accessed by this user.

In a nutshell, we fill out the form on the create virtual server screen and a new domain / website is ready for business. It is as simple as that.

BTW, your message is a bit garbled and I was unable to view the image that you have posted.

Every Virtual Server has its own directory.

If doesn’t not have its own config file for Apache on AlmaLinux, because the default behavior on RHEL and all derivatives is for all VirtualHosts to be added to the main httpd.conf file. That is configurable, but no need to change it.

You’ll need to clarify what’s going on, though, as it’s not clear to me what you expect to see. What is wrong with the screenshot you’ve shown us?

Good evening, thank you all for your interventions that you provided me. My problem is solved, I had installed Nginx which was not compatible with almalinux . I had to change it and install apache for the moment it works very well. Thanks to all

nginx works fine on AlmaLinux.

But, you can’t have both nginx and Apache on a Virtualmin system, at least not without a dumb amount of effort (and for no benefit).

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.