Handles name-based server www.my-domain.org on address *

Einfach Dinge, die nichts mit XAMPP, Apache Friends, Apache, MySQL, PHP und alle dem zu tun haben. Allerlei halt. ;)

Handles name-based server www.my-domain.org on address *

Postby unleash_it » 24. January 2020 21:27

hello dear all


on a fresh Configured Apache vhost (created on webmin)

i have configured the Apache web server to handle the domain name


the phrase is like so:

Code: Select all
webmin: Handles the name-based server www.my-domain.org on address *.


what makes me wonder is why do we have
Code: Select all
Handles the name-based server www.my-domain.org on address *.


very interesting is the following phrase

Code: Select all
on address *.





why do we have *.​

and not: *.*​


btw: see the directives:

Code: Select all
DocumentRoot "/sites/www.my_domain.org" /usr/local/apache/conf/vhost/vhost.conf (67)

ServerName www.my_domain.org /usr/local/apache/conf/vhost/vhost.conf (68)

<Directory "/sites/www.my_domain.org">

allow from all /usr/local/apache/conf/vhost/vhost.conf (70)

Options None /usr/local/apache/conf/vhost/vhost.conf (71)

Require all granted /usr/local/apache/conf/vhost/vhost.conf (72)

</Directory>




guess: *. seems to be correkt, * notes - all adresses, the point notes the end of the term in the handle.


by the way: in other cases - in the Overview on the Apache-Vhosts - in the webmin-frontend: it looks like so


  
Handles the name-based server http://www.the_domain_.org on all addresses




- on all adresses!? 



this is different



update: runned a ping test
sent 10 ICMP-Pakets to the server

result: - invalid host.​​



look forward to hear from you
for Wordpress-development :: super toolkits a. http://wpgear.org/ :: and b. github.com/miziomon/awesome-wordpress
:: Awesome WordPress: A curated list of amazingly awesome WordPress resources, themes, plugins and shiny things.
User avatar
unleash_it
 
Posts: 174
Joined: 10. December 2011 18:32
Operating System: linux opensuse 12.1

Re: Handles name-based server www.my-domain.org on address *

Postby unleash_it » 24. January 2020 23:34

update:



guess that all depends on the NS-Server entries:

all seems that the Vhost creation process went well and the vhost looks "healthy"

now i guess that i have to look for the entries regarding the NS-Server.

what do you suggest - which tests to run - which measures to test!?
for Wordpress-development :: super toolkits a. http://wpgear.org/ :: and b. github.com/miziomon/awesome-wordpress
:: Awesome WordPress: A curated list of amazingly awesome WordPress resources, themes, plugins and shiny things.
User avatar
unleash_it
 
Posts: 174
Joined: 10. December 2011 18:32
Operating System: linux opensuse 12.1

Re: Handles name-based server www.my-domain.org on address *

Postby Nobbie » 25. January 2020 12:55

unleash_it wrote:btw: see the directives:


Unfortunately, you did not show the ONLY interesting directive, which is the VirtualHost clause itself.

Example:

Code: Select all
<VirtualHost *>


That clause defines, on which addresses the VirtualHost is listening (in my case, its "*", what means "each address"). Perhaps in your example it is

Code: Select all
<VirtualHost *.>


which makes the VirtualHost listening to "*.". What is quite weird....

P.S.: A simple "ping" does not evaluate if your server is correctly handling a VirtualHost. It only shows that your Apache is listening to that IP or Domain (what means, that the Domain can be resolved), but it does NOT show, in which VirtualHost context Apache is listening to that IP. You MUST send an http: request to a VirtualHost in order to evaluate it (what usually is done via browsers).
Nobbie
 
Posts: 11565
Joined: 09. March 2008 13:04

Re: Handles name-based server www.my-domain.org on address *

Postby unleash_it » 25. January 2020 21:24

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.html

Running 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 *
for Wordpress-development :: super toolkits a. http://wpgear.org/ :: and b. github.com/miziomon/awesome-wordpress
:: Awesome WordPress: A curated list of amazingly awesome WordPress resources, themes, plugins and shiny things.
User avatar
unleash_it
 
Posts: 174
Joined: 10. December 2011 18:32
Operating System: linux opensuse 12.1

Re: Handles name-based server www.my-domain.org on address *

Postby unleash_it » 27. January 2020 11:31

hi @all



was den Nameserver anbelangt:

Soweit ich alles übersehen kann, sind die Einstellungen bei alle korrekt gesetzt.

Die Domain ist auf die gewünschten Nameserver konnektiert, löst aber noch nicht auf. Bei einer Abfrage der Daten erhalte vom Primary nichts erhalten.Hier müssen die DNS Daten ggf. dann auch noch korrekt hinterlegt werden.


@Nobbie - du hast m.E. Recht - ich glaube dass ich hier nochmals den Bau des vhost überprüfen sollte. Dein Beitrag, Nobbie, ist ziemlich deutlich. Da stimmt was nicht.

Ich guck mal nach - und melde mich wieder.

VG ;)
for Wordpress-development :: super toolkits a. http://wpgear.org/ :: and b. github.com/miziomon/awesome-wordpress
:: Awesome WordPress: A curated list of amazingly awesome WordPress resources, themes, plugins and shiny things.
User avatar
unleash_it
 
Posts: 174
Joined: 10. December 2011 18:32
Operating System: linux opensuse 12.1

Re: Handles name-based server www.my-domain.org on address *

Postby unleash_it » 27. January 2020 22:43

hi und guten Abend,

also nochmals zu dem Thema Vhost:

es ist ja wohl die ip. soll heissen auf jeder ip es gibt ja nur eine ip
es sind ja name based virtual hosts bei ip sollte man nichts eintragen, default

darüber hinaus denke ich - dass man folgendes verwendet:

any address
relevant ist nur server name
es sind ja name based virtual host
und es gibt nur eine ip
for Wordpress-development :: super toolkits a. http://wpgear.org/ :: and b. github.com/miziomon/awesome-wordpress
:: Awesome WordPress: A curated list of amazingly awesome WordPress resources, themes, plugins and shiny things.
User avatar
unleash_it
 
Posts: 174
Joined: 10. December 2011 18:32
Operating System: linux opensuse 12.1

Re: Handles name-based server www.my-domain.org on address *

Postby unleash_it » 28. January 2020 22:29

hi und guten Abend,


also ich denke, dass ich hier noch das Problem habe - bezüglich der Auflösung der Domain;
Es scheint so dass der Primäre Nameserver keine Daten ausliefert.
Es sieht ganz danach aus, dass dort keine Zonendaten zur Domain hinterlegt ist.
ich muss noch die Zone auf dem gewünschten Primary anpassen, sodass die Domain auflösen soll.

Werde mich mal darum kümmern und mich danach wieder melden.

vg
for Wordpress-development :: super toolkits a. http://wpgear.org/ :: and b. github.com/miziomon/awesome-wordpress
:: Awesome WordPress: A curated list of amazingly awesome WordPress resources, themes, plugins and shiny things.
User avatar
unleash_it
 
Posts: 174
Joined: 10. December 2011 18:32
Operating System: linux opensuse 12.1

Re: Handles name-based server www.my-domain.org on address *

Postby Nobbie » 29. January 2020 16:03

Das größte Problem ist, dass Du irrtümlich glaubst, Du hättest uns das EIGENTLICHE Problem genau dargestellt. Das ist aber leider nicht so, Du trägst im ersten Beitrag zwar alle möglichen Dinge vor, die Du beobachtet hast, Du fragst ein paar Dinge, ob man dieses oder jenes so oder so macht - aber was Du WIRKLICH zu machen versuchst und was NICHT (oder FALSCH) funktioniert - das schreibst Du leider nicht.

Ich habe wirklich keine Ahnung, was eigentlich genau das Problem ist?!
Nobbie
 
Posts: 11565
Joined: 09. March 2008 13:04


Return to Allerlei

Who is online

Users browsing this forum: No registered users and 3 guests