O
O
Olfaer2020-04-14 04:08:14
linux
Olfaer, 2020-04-14 04:08:14

Why can't apache see websites?

Hello. help defeat this fucking apache, it flatly refuses to work with sites, or rather, it stopped opening them at all on my server there are 2 sites, the first is a movie site (for personal use) and the second is a mail script, the whole system worked properly until the moment when everything had to be demolished and put a new linux debian like everything was on the old OS, I transferred it to the new one, launched Apache, loaded the site into var/www/site.by, the config seems to have correctly written

<VirtualHost site.by:80>
 ServerAdmin [email protected]
 ServerName site.by
 ServerAlias www.site.by
 DocumentRoot /var/www/site.by
 ErrorLog /var/log/apache2/error.log
 CustomLog /var/log/apache2/access.log combined
 <Directory '/var/www/site.by/'>;
 Options Indexes FollowSymLinks 
 AllowOverride All
 Require all granted
 </Directory>
php_admin_value mbstring.func_overload 2

</VirtualHost>

but when you go to the site, it gives
The requested URL was not found on this server.

with the second site, the same crap (the config is the same, only the addresses are my own) I tried other configs from the Internet, but it didn’t matter at all, tell me who knows what I’m doing wrong
Linux debian 10
webmin is installed, the
owner of the folders is www-data rights 775

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Germanjon, 2020-04-15
@Germanjon

1. ping site.by what gives? There is a possibility that he is knocking in the wrong place.
2. Is the NameVirtualHost directive installed in Apache? What value is indicated?
3. What are the values ​​in DirectoryIndex?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question