Good all the time of day.

I am a web designer and recently faced the problem of writing a virtual server. I created the " site1 " folder, uploaded the html file there, and already wanted to add the <VirtualHost> directive to the " httpd-vhosts.conf " file, but, alas, bad luck happened. I did not find this file, although it is written in the educational edition that this file is located: C:\Apache2confextr a. I found the folder " conf ", but I did not find the " extra ".

    2 answers 2

    If this file is not there, you can do the following:

    1. Add a virtual host to the httpd.conf file or
    2. Create your own folder and file ( extra and httpd-vhosts.conf respectively). Then in the httpd.conf file add Include conf/extra/httpd-vhost.conf

      Use the file search, this file where it can’t really lie ... And it is also called differently, but first try to find it by the real name. If you do not find it, look for the words <VirtualHost> inside the * .conf files.