Answer the question
In order to leave comments, you need to log in
How to raise 2 sites on Apache server?
Hello. raised the site on the sait.by server, I need to make a 2 site with a 3-level domain mail.sait.by,
the sites are in the directories /var/www/html/sait.by and /var/www/html/mail.sait.by for
some reason then when I go to a particular site, it opens a folder with sites
sait.by works with SSl I pass
the settings through Webmin,
help me deal with this problem
Answer the question
In order to leave comments, you need to log in
Create virtual hosts, depending on the distribution, the creation process may vary. It is better to do everything manually through the configs, I do not recommend using graphical installers.
By the fact that you need to create a virtual host. Apache is not configured.
It is a pity that Webmin used 10 years ago)))
for some reason, when I go to a particular site, it opens a folder with sitesYou are running Apache only with a defaul host, so any request most likely goes to /var/www/html/ and folder browsing is enabled there (folders and files are displayed as in explorer).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question