Java Mailing List Archive

http://www.apache-httpd.com/

Home » users.httpd »

[users@httpd] custom 404 with mod_vhost_alias

Graham Clarke

2008-07-31


Author LoginPost Reply
Hi - I'm using mod_vhost_alias w. Apache 2.2 and would like to configure
a custom 404 when a URL match is not found. If a visitor enters the url
somesite.mydomain.com the site located in /home/www/customer/somesite is
served. I'd like to gracefully cover cases where wrongsite.mydomain.com
doesn't match a directory /home/www/customer/%1


My virtual host container using mod_vhost_alias looks like this

<VirtualHost 012.345.678.901>
  ServerName customer.mydomain.com
  CustomLog logs/access_log.customer vcommon
  VirtualDocumentRoot /home/www/customer/%1
</VirtualHost>


Thanks in advance,

Graham

--
Graham Clarke
53 Technology

+ www.53tech.com
+ grahamc [at] 53tech.com
+ 603-643-9955


---------------------------------------------------------------------
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@(protected)
 "  from the digest: users-digest-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 apache-httpd.com - Jax Systems, LLC, U.S.A.