Toon posts:

Virtual hosting via Apache

Pagina: 1
Acties:

Verwijderd

Topicstarter
Beste Tweakers,

Ik heb ff zitten zoeken op de website van de apache documentatie hoe je virtual hosting instelt enz. via apache. Dit is mij allemaal gelukt. (Ik draai momenteel 2 domeinnamen op een ip).

Maar iets wat ik niet kon vinden is:
Als ik nu de ip adres invoerd in de brouwers dus: http://131.211.blabla ... hoe weet apache welke host hij moet doorgeven. Want uit de documentatie zag ik dat het de host kon afleiden d.m.v. de gevraagde domein name, maar nu stuur ik alleen een ip adres.

Weten jullie hoe ik apache kan vertellen welke mijn default host is als er een request kon via de IP adress?

Alvast bedankt voor de reactie.

Groeten,
Irfaan

Verwijderd

De eerstgenoemde is altijd je default.

Verwijderd

Topicstarter
De eerstgenoemde is altijd je default.

Is dit ergens gedocumenteerd?

Verwijderd

De NameVirtualHost optie moet je eens naar zoeken ;)

  • Thralas
  • Registratie: December 2002
  • Laatst online: 08:50
Now when a request arrives, the server will first check if it is using an IP address that matches the NameVirtualHost. If it is, then it will look at each <VirtualHost> section with a matching IP address and try to find one where the ServerName or ServerAlias matches the requested hostname. If it finds one, then it uses the configuration for that server. If no matching virtual host is found, then the first listed virtual host that matches the IP address will be used.

Verwijderd

Topicstarter
Okey ... Cool guys.

Thanks.

Topic kan gesloten worden.
Pagina: 1