httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Bailleul <Emmanuel.Baill...@telindus.fr>
Subject RE: [users@httpd] Testing virtual hosts on a virtual machine
Date Tue, 24 Nov 2009 18:48:41 GMT

> -----Message d'origine-----
> De : Florent Georges [mailto:darkman_spam@yahoo.fr]
> Envoyé : mardi 24 novembre 2009 18:39
> À : Apache HTTPD users list
> Objet : [users@httpd] Testing virtual hosts on a virtual machine
> 
>   Hi,
> 
>   I am using a virtual box (Ubuntu server 9.10 with VMware Fusion)
> to test a web server.  No problem to install Apache on this
> Ubuntu box, of course.  And I can access the default page after
> an install by using http://xxx.xxx.xx.xx/ in my browser (on the
> host machine.)
> 
>   But the web server will use named virtual hosts.  I guess that
> won't work as the browser won't send the correct domain name.
> 
>   Is there any tool to test an Apache instance with virtual hosts
> on a virtual machine?  Any best practice or advice to follow in
> that configuration?
> 
>   Regards,
> 
> --
> Florent Georges

Hi,

Why not just use curl with '-H' option, just as in:
$ curl -v -H "Host: vh1.domain.tld" http://<IP address>

This way curl will request httpd using "Host: vh1.domain.tld" header.

Regards.

Emmanuel
Mime
View raw message