[plug] wierd virtual domain problem -- solved, sort of
Peter Caffin
pc at it.net.au
Fri Oct 30 03:33:02 WST 1998
Greg Mildenhall wrote:
>
> On Fri, 6 Nov 1998, Peter Caffin wrote:
> > Peter Caffin wrote:
> > Well, I've just stumbled upon the answer to my problem, in the current
> > docs that I'd overlooked.
> Perhaps you'd care to read it more carefully?
>
> > In v1.3.0, virtual hosts must be on a separate IP address to the
> >"main server".
>
> No, they don't have to be.
I'm afraid it's so, at least according to
file:/usr/doc/apache/manual/vhosts/name-based.html :
]The notable difference between IP-based and name-based virtual host
]configuration is the NameVirtualHost directive which specifies an IP
]address that should be used as a target for name-based virtual hosts.
]Of course, any additional directives can (and should) be placed into
]the <VirtualHost> section. To make this work, all that is needed is to
]make sure that the name www.domain.tld points to the IP address
]111.22.33.44
Essentially, 'NameVirtualHost 203.8.116.41' appears as a declaration
outside the <VirtualHost></VirtualHost> declarations.
The important bit is the next paragraph:
]Note: When you specify an IP address in a NameVirtualHost directive
]then requests to that IP address will only ever be served by matching
]<VirtualHost>s. The "main server" will never be served from the
]specified IP address.
Therefore, the "main server" must be of a different IP address to the IP
address used to serve all of the virtual domains.
PS: I did follow those instructions you quoted initially. It was in
re-reading them when they weren't working that I found the above.
--: _ ___ _ _ _
_oo__ |_|_ |__ _ | | _ |_|_' _ pc at it dot net dot a u |
//`'\_ | (/_|(/_| .|. |_(_|| | || | it.net.au/~pc |
/ PO Box 869, Hillarys WA 6923, AUSTRALIA |
More information about the plug
mailing list