Good day. I decided to join the ranks of linuksoids. In general, the task is to install Apache and configure a virtual host. Everything seems to be simple, but there is one problem - my host for some reason points to the default folder, suggested that it’s a link, but I cannot understand what’s wrong, the site in the siteme folder is the siteme file from apache sites-available :

 <VirtualHost *:80> ServerAdmin admin@siteme.com ServerName site.me ServerAlias www.site.me DocumentRoot /var/www/siteme/ ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost> 

In sites-enabled there is a link to this file with the same name, tried to delete and re-create using a2ensite . In etc/hosts

 127.0.1.1 localhost site.me 

In general, help winduser.

  • 1. Are there other files or links in the sites-enabled directory? 2. program restarted after making changes to the configuration? 3. How exactly did the program install? - aleksandr barakin
  • 1. There are no other files. 2. Yes, I did setvice apache2 reload 3. If you are setvice apache2 reload about Apache, then sudo apt-get install apache2 - VK
  • It seems that's right. And what is the expression that the "host points to the default folder"? And how do you access the host (which is in the address bar of the browser)? - user194374
  • Address line site.me , when I go to this address I see a folder tree from var / www / - VK

0