Apache help
Aaron Vegh
aaronvegh-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Thu Jun 8 12:21:27 UTC 2006
Hi there,
Not sure which version of Apache you're using, but I've found this
document very helpful in setting up vhosts:
>From http://httpd.apache.org/docs/1.3/vhosts/examples.html#default
Setup 1: Catching every request to any unspecified IP address and
port, i.e., an address/port combination that is not used for any other
virtual host.
Server configuration:
...
<VirtualHost _default_:*>
DocumentRoot /www/default
...
</VirtualHost>
Using such a default vhost with a wildcard port effectively prevents
any request going to the main server.
Cheers,
Aaron.
On 6/8/06, Kihara Muriithi <william.muriithi-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org> wrote:
> Hi
> One can set up apache in two ways, default (for lack of a more precise
> name) and as virtual host (IP based and dns based). i have set up apache
> using the later method. However, if apache encounter a situation which is
> not configured on the virtual host section, it fall back to the default
> (main) section.
> I would like to disable this behaviour. In short, I would like apache not
> to consider any configuration under the main section whatever happen. What
> can one change on the configuration file to be certain only the virtual host
> section is ever considered?
> Finally, thanks for the help on host command in the previous mail. It
> turned out that my resolv.conf file pointed to a nonexistent name server as
> Astrand had suggested
>
> William
>
--
The Toronto Linux Users Group. Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
More information about the Legacy
mailing list