Re: Problems with NameVirtualHost directive
On Thu, 17 Nov 2005 15:36:42 -0800, news sent:
> In migrating our server to a new one with Apache 2.0.52. And I'm getting
> various errors from my "/etc/rc.d/ini.d/httpd configtest" depending on
> what I try from the O'Reilly "Apache Definitive Guide" and similar
> suggestions found on the newsgroup for similar problems.
>
> Here's the top of my virtualdir that I have included at the end of my
> httpd.conf:
>
> NameVirtualHost (our IP)
Try changing all the "(our IP)" bits from your IP address to just: *
Condensing my config file, I have this sort of thing:
NameVirtualHost *:80
<VirtualHost _default_:80>
# Default website to serve, regardless of hostname
</VirtualHost>
<VirtualHost _default_:443>
# Default, and only, HTTPS website to serve
</VirtualHost>
<VirtualHost *:80>
# Another website
</VirtualHost>
<VirtualHost *:80>
# Yet another website
</VirtualHost>
<VirtualHost *:80>
# Yet another website
</VirtualHost>
> [Thu Nov 17 17:23:54 2005] [error] VirtualHost (our IP):80 -- mixing *
> ports and non-* ports with a NameVirtualHost address is not supported,
> proceeding with undefined results
Which is to do with the SSL site (it's not on port 80).
--
If you insist on e-mailing me, use the reply-to address (it's real but
temporary). But please reply to the group, like you're supposed to.
This message was sent without a virus, please destroy some files yourself.
|