| Summary: | net-www/apache-2.0.54-r31 calls NameVirtualHost *:80 in 00_default_vhost.conf breaking user vhosts | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Marcus D. Hanwell (RETIRED) <cryos> |
| Component: | New packages | Assignee: | Apache Team - Bugzilla Reports <apache-bugs> |
| Status: | RESOLVED INVALID | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Marcus D. Hanwell (RETIRED)
2005-09-19 07:00:44 UTC
I am not seeing how this is breaking your vhosts. Please provide a more concrete
example of a config that is broken by having a NameVirtualHost *:80. I just
tested the following on my server:
<VirtualHost _default_:443>
ServerName localhost:443
</VirtualHost>
NameVirtualHost *:80
<VirtualHost *:80>
</VirtualHost>
<VirtualHost *:80>
ServerName jaspenelle.testing.gracefulsymmetry.com
</VirtualHost>
<VirtualHost *:80>
ServerName vericgar.testing.gracefulsymmetry.com
</VirtualHost>
<VirtualHost *:80>
ServerName store.vericgar.testing.gracefulsymmetry.com
</VirtualHost>
<VirtualHost *:80>
ServerName store.jaspenelle.testing.gracefulsymmetry.com
</VirtualHost>
<VirtualHost *:80>
ServerName painteddragonfly.org
</VirtualHost>
<VirtualHost *:80>
ServerName alteredeclipse.org
</VirtualHost>
NameVirtualHost 10.0.1.80:80
<VirtualHost 10.0.1.80:80>
ServerName manage.gracefulsymmetry.com
</VirtualHost>
I swear it threw an error about the address already being used with the second NameVirtualHost after the first *:80, then apache failed to start. Now that I try it again no error is being thrown at all - which is weird. Sorry for the noise - the second entry seems to override now and produce the desired effect. Closing as INVALID... I remembered where this does actually result in an error. My current set up has now turned off the default SSL virtual host which claimed all IPs, and I am using two different virtual hosts for two IPs with different certs as is required. This means that no virtual hosts in my set up are using NameVirtualHost *:80. As a result of this I have a perfectly valid set up which has this error on starting apache2, [Wed Oct 26 17:44:01 2005] [warn] NameVirtualHost *:80 has no VirtualHos If the NameVirtualHost directive were to be correctly placed within the <IfDefine DEFAULT_VHOST> block this error would not be thrown. It was masked earlier as I had started an SSL host too which suppressed the error apparently. I suppose I could just edit the line out but it seems the installed config files should be as flexible as possible and so I would suggest moving that line within the block. If people want to use your default vhost they can, if not then nothing is changed. Of course you may feel differently, I just wanted to document what I felt was wrong with the default config file. |