Results 1 to 3 of 3
  1. #1
    Senior Member dansroka's Avatar
    Join Date
    Nov 2003
    Location
    New Jersey
    Posts
    177

    Default Apache Error messages for multiple domains?

    I have Apache Error Messages installed in order to have custom error messages. However, I have multiple domains on my account, and it appears that each domain uses the same error message. This isn't a huge deal, but I'd like to have a custom error message for each domain. Any ideas if this is possible?

  2. #2
    Senior Member visible soul's Avatar
    Join Date
    Sep 2003
    Location
    Corpus Christi
    Posts
    111

    Default

    Quote Originally Posted by dansroka
    I have Apache Error Messages installed in order to have custom error messages. However, I have multiple domains on my account, and it appears that each domain uses the same error message. This isn't a huge deal, but I'd like to have a custom error message for each domain. Any ideas if this is possible?
    I'm not sure about using the Apache Error Messages application but you can configure each non-primary domain to use a different set of error pages by editing httpd.conf or I think you can do the same thing in a .htaccess file.

    Here is the way I have been doing this in httpd.conf...

    Code:
    <VirtualHost *>
        ServerName mydomain.com
        ServerAlias www.mydomain.com
        DocumentRoot /var/www/html/mydomain
        ErrorDocument 401 /site/error/401.htm
        ErrorDocument 403 /site/error/403.htm
        ErrorDocument 404 /site/error/404.htm
        ErrorDocument 500 /site/error/500.htm
    </VirtualHost>
    I think you can put this in a htaccess file in the root directory of your non-primary domain...
    Code:
    ErrorDocument 401 /site/error/401.htm
    ErrorDocument 403 /site/error/403.htm
    ErrorDocument 404 /site/error/404.htm
    ErrorDocument 500 /site/error/500.htm
    Last edited by visible soul; 08-06-2005 at 11:14 PM.
    "Beware of all enterprises that require new clothes." -Henry David Thoreau

  3. #3
    Senior Member dansroka's Avatar
    Join Date
    Nov 2003
    Location
    New Jersey
    Posts
    177

    Default

    Thank you - that's exactly what I wanted to know.

    Dan

Similar Threads

  1. Need Mongrel install HOWTO or Recompile Apache
    By pipespring in forum General Discussion
    Replies: 4
    Last Post: 11-07-2007, 11:06 AM
  2. Report of all domains and users
    By bpk in forum General Discussion
    Replies: 0
    Last Post: 01-23-2007, 08:01 AM
  3. apache local installation problems
    By ali in forum PHP / MySQL
    Replies: 10
    Last Post: 03-06-2005, 08:03 AM
  4. Domains under 1 account - cant create emails ?
    By justus in forum Domain names & DNS
    Replies: 0
    Last Post: 10-02-2003, 12:24 AM
  5. Hosting Packagages and Multiple Domains
    By web1x in forum Domain names & DNS
    Replies: 1
    Last Post: 09-20-2003, 05:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •