Re: Understand "httpd -t -D DUMP_VHOSTS"

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

 



On Fri, Apr 24, 2009 at 10:13 PM, jeff00seattle
<jeff_tanner@xxxxxxxxxxxxx> wrote:
>
> Presented is the output of httpd -t -D DUMP_VHOSTS.
>
> Why does every NameVirtualHost reference its configuration twice; one for
> the default server and the other for the port #### namevhost?
> And why do all NameVirtualHost(s) have a default server reference, which
> seems conflicting.
>
> httpd -t -D DUMP_VHOSTS Output:
> VirtualHost configuration:
> wildcard NameVirtualHosts and _default_ servers:
> _default_:443          localhost (/etc/httpd/conf.d/ssl.conf:81)
> *:8085                 is a NameVirtualHost
>         default server project_site.admin.8085
> (/etc/httpd/conf/extras/virtual-host.project_site.admin.8085.conf:23)
>         port 8085 namevhost project_site.admin.8085
> (/etc/httpd/conf/extras/virtual-host.project_site.admin.8085.conf:23)
> *:8080                 is a NameVirtualHost
>         default server project_site.dev.8080
> (/etc/httpd/conf/extras/virtual-host.project_site.dev.8080.conf:28)
>         port 8080 namevhost project_site.dev.8080
> (/etc/httpd/conf/extras/virtual-host.project_site.dev.8080.conf:28)
> *:80                   is a NameVirtualHost
>         default server project_site.demo.80
> (/etc/httpd/conf/extras/virtual-host.project_site.demo.80.conf:35)
>         port 80 namevhost project_site.demo.80
> (/etc/httpd/conf/extras/virtual-host.project_site.demo.80.conf:35)

You have three ports with one host one each. You're not using name
based virtual hosts at all, but have defined "NameVirtualHost" for
each of your ports.
Therefore apache will list for each port:
- De default vhost
- All defined vhosts.

Because you only have one virtualhost defined per port it gets
menioned twice, that is all.

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