SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Aug 2005
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Custom 404 Page help

    I am trying to set up a custom 404 page on a site that I am developing on my test server. It is a wamp server (2.2.6) running on my notebook.

    I am writing virtual host files for the sites in the httpd-vhosts.conf file. Everything is working except the 404.

    Code:
    <VirtualHost *:80>
     ServerName http://www.braintrust360.com
     ServerAlias braintrust
     DocumentRoot C:/wamp/www/tylerweb/public_html/braintrust360.com/
     ErrorDocument 404 C:/wamp/www/tylerweb/public_html/braintrust360.com/bt_404.html
     ErrorLog C:/wamp/www/tylerweb/public_html/braintrust360.com/logs/error.log
     CustomLog C:/wamp/www/tylerweb/public_html/braintrust360.com/logs/access.log common
    </VirtualHost>
    Any idea why this is not working?

  2. #2
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,672
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)
    jeff,

    Yes, don't use the WinDoze physical location - ErrorDocument is a webspace command (which requires an absolute redirection), not a physical location.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator


Bookmarks

Posting Permissions

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