Virtuelle Hostkonfiguration ausgelassen

Virtuelle Hostkonfiguration ausgelassen

ich habe Apache 2.4 auf Centos so eingerichtet, dass index.html von zwei virtuellen Hosts aus bereitgestellt wird, aber unabhängig vom Port in der URL stellt Apache index.html immer von stepan.wudangtc.cz bereit. Ich habe wahrscheinlich etwas falsch verstanden oder falsch konfiguriert. Bitte geben Sie mir einen Rat, wie ich Apache so konfigurieren kann, dass index.html auch vom virtuellen Host pavel.wudangtc.cz bereitgestellt wird. Apache lauscht sowohl auf Port 80 als auch auf Port 8080.

<VirtualHost *:80>
    ServerName pavel.wudangTC.cz
    ServerAlias wudangTC.cz
    DocumentRoot /aplikace/httpd/docroots/pavel

    <Directory /aplikace/httpd/docroots/pavel>
            Require all granted
    </Directory>

</VirtualHost>

<VirtualHost *:8080>
   ServerName stepan.wudangTC.cz
   ServerAlias www.wudangTC.cz
   DocumentRoot /aplikace/httpd/docroots/stepan

   <Directory /aplikace/httpd/docroots/stepan>
           Require all granted
   </Directory>

</VirtualHost>

verwandte Informationen