hello dear Nobbi
many tanks for the quick reply. great to hear from you - many thanks for sharing your insights - and your ideas. afaik is my directive a broken dirctive which does not function and will stop the system from resolving the process.
so - as far as i unserstand your hints i have to rewrite the directive to
- Code: Select all
.*. or to to *
to
- Code: Select all
.*
this one is weird - and i think that i have to change this
- Code: Select all
<VirtualHost *.>
https://httpd.apache.org/docs/2.2/mod/c ... irtualhost<VirtualHost> und </VirtualHost> werden dazu verwendet, eine Gruppe von Direktiven zusammenzufassen, die nur auf einen bestimmten virtuellen Host angewendet werden. Jede Direktive, die im Virtual-Host-Kontext zulässig ist, kann verwendet werden. Wenn der Server eine Anfrage für ein bestimmtes Dokument eines bestimmten virtuellen Hosts empfängt, dann benutzt er die im <VirtualHost>-Container enthaltenen Konfigurationsanweisungen. Adresse kann sein:
Die IP-Adresse des virtuellen Hosts.
Ein voll qualifizierter Domainname für die IP-Adresse des virtuellen Hosts.
Das Zeichen *, welches nur in Kombination mit NameVirtualHost * verwendet wird, um allen IP-Adressen zu entsprechen.
Die Zeichenkette _default_, die nur mit IP-basierten virtuellen Hosts verwendet wird, um nicht zugewiesene IP-Adressen aufzufangen.
example. - Code: Select all
<VirtualHost 10.1.2.3>
ServerAdmin webmaster@host.foo.com
DocumentRoot /www/docs/host.foo.com
ServerName host.foo.com
ErrorLog logs/host.foo.com-error_log
TransferLog logs/host.foo.com-access_log
</VirtualHost>
VirtualHost Examples This document attempts to answer the commonly-asked questions about setting up virtual hosts. These scenarios are those involving multiple web sites running on a single server, via name-based or IP-based virtual hosts.
https://httpd.apache.org/docs/2.4/vhosts/examples.htmlRunning several name-based web sites on a single IP address.
Your server has multiple hostnames that resolve to a single address, and you want to respond differently for
www.example.com and
www.example.org.
Note Creating virtual host configurations on your Apache server does not magically cause DNS entries to be created for those host names. You must have the names in DNS, resolving to your IP address, or nobody else will be able to see your web site. You can put entries in your hosts file for local testing, but that will work only from the machine with those hosts entries.
Using _default_ vhosts _default_ vhosts for all ports
Catching every request to any unspecified IP address and port, i.e., an address/port combination that is not used for any other virtual host.
- Code: Select all
<VirtualHost _default_:*>
DocumentRoot "/www/default"
</VirtualHost>
Using such a default vhost with a wildcard port effectively prevents any request going to the main server.
A default vhost never serves a request that was sent to an address/port that is used for name-based vhosts. If the request contained an unknown or no Host: header it is always served from the primary name-based vhost (the vhost for that address/port appearing first in the configuration file). You can use AliasMatch or RewriteRule to rewrite any request to a single information page (or script).
conclusio - i think that i have to rewrite this directive:
.....so - as far as i unserstand your hints i have to rewrite the directive to
- Code: Select all
.*. or to to *