The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

System Wide Error pages

Discussion in 'General Discussion' started by sayouly, Dec 15, 2004.

  1. sayouly

    sayouly Member

    Joined:
    Oct 15, 2004
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    I would like to set up system wide error pages on my server so that if the user of an account does not create custom error pages the server error pages will display. I searched the forum and found an old thread that said to install the fix404errors script found at
    http://cplicensing.net/scripts.php and then create the 404 page and place it in my skeleton directory. So, I did that I does create a 404 error page in new accounts, but, and here is my problem, like the index page, the user can delete the error page.

    I want to be able to create system wide error pages that are not visable in the users account. Is this possible?

    My main goal is to give free domain hosting and use the system 404 pages to generate income. Any help would be appreciated.

    Thanks
     
  2. dezignguy

    dezignguy Well-Known Member

    Joined:
    Sep 26, 2004
    Messages:
    534
    Likes Received:
    0
    Trophy Points:
    16
    edit your apache httpd.conf for systemwide 404 error pages... search it for '404' and read the apache docs.
     
  3. sayouly

    sayouly Member

    Joined:
    Oct 15, 2004
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Thanks

    Thank you. I think this is what I'm looking for.

    Cheers,
     
  4. sayouly

    sayouly Member

    Joined:
    Oct 15, 2004
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Still need help

    I have looked into the httpd.conf file and found the code that relates to the error docs. I have also read the apache docs. So, you're right this is the way to go, but not being a programmer I am afraid of doing this without more specific information. Is there a step by step guide anywhere that provides more information on exactly how to do this?
     
  5. dezignguy

    dezignguy Well-Known Member

    Joined:
    Sep 26, 2004
    Messages:
    534
    Likes Received:
    0
    Trophy Points:
    16
    Search for something that you want... this is the whole idea behind Google.com

    Otherwise, experiment with making the changes yourself... and make a backup of your httpd.conf before you start:
    Code:
    cp httpd.conf httpd.conf.backup
    if you screw something up, and want your sites back up...

    Code:
    cp httpd.conf.backup httpd.conf
    to overwrite the changes you did. And then start apache.

    You can also use
    apachectl to help you troubleshoot
     
  6. jeroman8

    jeroman8 Well-Known Member

    Joined:
    Mar 14, 2003
    Messages:
    410
    Likes Received:
    0
    Trophy Points:
    16
    Well, you could search here also or ask as that is the purpose of a forum.

    Find: ErrorDocument 404 in httpd.conf
    Replace with: ErrorDocument 404 http://www.your_siteand_page.com

    Restart apache

    Use SFTP cause it's much simplier than using ssh.
    It a regular FTP program but you're logged in with root and can change
    whatever you like just as ssh.
     
Loading...

Share This Page