custom 404 with mod_vhost_alias

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux