[thelist] 404 a Whole Sub-Domain

William Anderson neuro at well.com
Thu Aug 30 10:06:30 CDT 2007


Jon Molesa wrote:
> I'm looking for a way to 404 a whole sub-domain.
> 
> I'm setting up a webservice on the sub-domain for internal use.  I've
> got traffic deny except for a particular IP in .htaccess.  I have a
> default page setup in /etc/http/conf.d/welcome.conf as a parking page.
> I either need to overide that, or just create an index.html that spits
> out 404 headers.
> 
> What are thoughts and suggestions as to the best way to handle this?

Don't use welcome.conf.  Rename or delete it, and create a vhost for 
that specific subdomain.

-n



More information about the thelist mailing list