- Code: Select all
# localhost name resolution is handled within DNS itself.
127.0.0.1 localhost
127.0.0.1 local-matthias.dev
127.0.0.1 local-web.dev
- Code: Select all
<VirtualHost local-matthias.dev>
ServerAdmin admin@localhost.com
DocumentRoot "E:/Programme/xampp/htdocs/matthias"
ServerName local-matthias.dev
ServerAlias local-matthias.dev
<Directory "E:/Programme/xampp/htdocs/matthias">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
<VirtualHost local-web.dev>
ServerAdmin admin@localhost.com
DocumentRoot "E:/Programme/xampp/htdocs/web"
ServerName local-web.dev
ServerAlias local-web.dev
<Directory "E:/Programme/xampp/htdocs/web">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
Auf local-matthias.dev kann ich zugreifen, aber bei local-web.dev bekomme ich den Fehler "Diese Webseite ist nicht verfügbar."
Apache habe ich schon neu gestartet und ein Ping funktioniert auch:
- Code: Select all
C:\Users\Matthias Pospiech>ping local-matthias.dev
Ping wird ausgeführt für local-matthias.dev [127.0.0.1] mit 32 Bytes Daten:
Antwort von 127.0.0.1: Bytes=32 Zeit<1ms TTL=128
Antwort von 127.0.0.1: Bytes=32 Zeit<1ms TTL=128
Antwort von 127.0.0.1: Bytes=32 Zeit<1ms TTL=128
Antwort von 127.0.0.1: Bytes=32 Zeit<1ms TTL=128
C:\Users\Matthias Pospiech>ping local-web.dev
Ping wird ausgeführt für local-web.dev [127.0.0.1] mit 32 Bytes Daten:
Antwort von 127.0.0.1: Bytes=32 Zeit<1ms TTL=128
Antwort von 127.0.0.1: Bytes=32 Zeit<1ms TTL=128
Antwort von 127.0.0.1: Bytes=32 Zeit<1ms TTL=128
Antwort von 127.0.0.1: Bytes=32 Zeit<1ms TTL=128
Woran könnte es noch liegen? Das Verzeichnis existiert auch wirklich.
Die Log Dateien (access, error) enthalten nicht einen einzigen Eintrag zu diesem vhost.