Different 404 error for different vhosts

Discussion in 'Server Operation' started by Torsson, Oct 6, 2006.

  1. Torsson

    Torsson Member

    Hi, i was trying to think about how i can make so every vhost can have different 404 error page. Does anywhon have a idéa about how i can achive this?
  2. falko

    falko Super Moderator ISPConfig Developer

    You can specify the 404 error page in each vhost, e.g.

    ErrorDocument 404 /error/fileNotFound.html
    (where /error/fileNotFound.html is relative to that web site's document root; if the document root is /var/www for example, the absolute path to the error page would be /var/www/error/fileNotFound.html). Now you can put different HTML code into each of your fileNotFound.html files. :)
  3. Torsson

    Torsson Member

    Thank you Falko!.

Share This Page