RE: Testing virtual hosts on a virtual machine

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Message d'origine-----
> De : Florent Georges [mailto:darkman_spam@xxxxxxxx]
> Envoyé : mardi 24 novembre 2009 18:39
> À : Apache HTTPD users list
> Objet :  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


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux