Re: vhost not receiving the connections

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

 



On Mon, Aug 10, 2009 at 3:48 AM, Jean-François<grattojf@xxxxxxxxx> wrote:
> Hello,
>
> I’m having an issue with serving the correct pages on my httpd with vhosts.

That is because you haven't properly configured it.

You need the following directive:

NameVirtualhost *.80

You don't put ip's or hostnames in the NameVirtualHost statement,
unless you really know very well what you are doing...

Then you need to add your vitualhosts with exactly the same parameter
in the VirtualHost block:

<VirtualHost *:80>

Servername w.dnsalias.net

# rest of your directives for w.dnsalias.net

</VirtualHost>

<VirtualHost *:80>

ServerName x.dnsalias.net

# rest of your directives for x.dnsalias.net

<VirtualHost>

This is an error often made by people configuring virtualhosts for the
first time (and not reading the documentation properly :-)
The paramter to <VirtualHost> is not the hostname of your virtualhost,
it is the ip/port combination you have configured name based virtual
hosts on...

Once you've got your hosts configured properly just test your config
with "httpd -S". You should get a nice list of your hosts...


Krist



-- 
krist.vanbesien@xxxxxxxxx
krist@xxxxxxxxxxxxx
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[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