httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary W. Smith" <g...@primeexalia.com>
Subject RE: [users@httpd] Creating a Catch-Everything Catch-All
Date Mon, 17 Oct 2005 20:55:10 GMT
This requires two things.  One, you need to configure DNS to catchall.
I'm not sure how to do this but search google for bind and all.

As for the other one, create a vitual site as _default_ and give server
aliases.  Then if you create a real virtual site you will need to use
the qualified domain name for it (say ServerAlias jack.thissite.com) in
the configuration.

ServerAlias thissite.com
ServerAlias *.thissite.com

Then I would just create a 404 rule that points to a single pave and
remove all of the other content.

I think that's the easiest way.

> -----Original Message-----
> From: apache.org@donnacha.com [mailto:apache.org@donnacha.com]
> Sent: Monday, October 17, 2005 1:25 PM
> To: users@httpd.apache.org
> Subject: [users@httpd] Creating a Catch-Everything Catch-All
> 
> Please forgive my lack of clue.  I have read the FAQ and googled
> ferociously but haven't been able to find a solution, I hope that
> someone here can help me.
> 
> I would like anybody to be able to point their domains at my
nameservers
> and for anybody browsing to "thatdomain.com" or "www.thatdomain.com"
or
> "*.thatdomain.com" or "thatdomain.com/*" to see a default/catch-all
PHP
> page.
> 
> Of course, if someone browses to a domain I have defined I don't want
> them to see the catch-all.
> 
> From my research so far, I suspect there is some way to achieve this
> using default virtualhosts and I have tried entering various entries
> into httpd.conf but, unfortunately, most of the instructions I'm
working
> from presume more basic knowledge than I have and leave out certain
> parts of the entry that are probably obvious to everyone but me.
> 
> I would greatly appreciate it if someone could show me exactly what a
> comprehensive default virtualhost entry that catches all variations
and
> subdomains etc should look like, and tell me if there are any other
> settings I should also be changing.
> 
> Again, sorry if this is all very obvious stuff, I honestly haven't
been
> able to get my head around it.
> 
> Thanks,
> 
> Donnacha
> 
> ---------------------------------------------------------------------
> 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@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message