Custom Error Pages

Discussion in 'H-Sphere Shared Hosting' started by Logan, Jan 25, 2004.

  1. Logan

    Logan Perch

    I want to define a custom error page for 404 errors. I have created a page called error404.asp and put it in the root directory of my web site. I have gone into H-Sphere and added an error page with the following settings:

    Error Document Code: 404
    Relative Path to Custom Error page: error 404.asp

    Yet when I put a non-existent URL in my browser, I get the standard 404 error message, not my custom error page.

    Help!
  2. MarkeyHost

    MarkeyHost Perch

    It should be somthing like this: thedomain.com/errors/error404.html

    Markey
  3. Logan

    Logan Perch

    It doesn't seem too matter what I put in the field, it doesn't seem to work. I have tried "mydoman.com/404.asp" and "mydomain/errors/404.asp" (note that I have changed the filename to 404.asp and created an "errors" directory and tried the page in there). Nothing seems to enable my custom 404 page.

    Yash, help please.

    PS: I am using Windows.
  4. Yash

    Yash Bass

    Hi

    firstly, if you are on the old windows cluster (which I believe you are from), login from http://cp.jodohost.com:8080 instead and setup your error page
  5. legends92

    legends92 Guppy

    Not related to the issue, but with is the difference between regular login page and the link you provided? And also what is a windows cluster?
  6. Yash

    Yash Bass

    We have sites currently on two clusters. A cluster is a group of servers with its own dns, mail, database and web servers. Our old cluster was based on Win2000

    We recently introduced a new cluster based on Win2003. Customers who signed up with us prior to Nov 2003 are on the old Win2000 cluster and they must use the control panel link for the old cluster (which you have quoted).
  7. riley

    riley Perch


    Well, I'm having the same problem and I'm wondering how you finally resolved this. Do you enter mydomain/errors/404.asp, or errors/404.asp, or what?

    riley
  8. MarkeyHost

    MarkeyHost Perch

  9. riley

    riley Perch

    Much like malemanes, it seems to make no difference what I put for a relative path; it simply does not work.

    The error page is in a folder off of my domain (mydomain/error/err404.htm). I've tried the following:

    error/err404.htm
    /error/err404.htm
    mydomain.com/error/err404.htm
    /mydomain.com/error/err404.htm
    http://mydomain.com/error/err404.htm

    I would have thought the 1st in the list would do the trick, but none of these worked.

    Any help would be appreciated...

    riley
  10. MarkeyHost

    MarkeyHost Perch

    It could be something with the way it is setup here... I tried it on two other Hsphere systems and they both work by domain.com/folder/doc.htm but it was also on Windows 2000 machines I am not sure about Windows 2003.

    Markey
  11. Yash

    Yash Bass

    There is a bug with hSphere. Doesn't setup custom errors correctly on Win2003. This is fixed in version 2.4. Till then, open a ticket and we'll have to do it manually
  12. riley

    riley Perch

    Thanks Yash. I submitted a ticket. I seem to remember reading in one of your earlier posts that today is a holiday in India. So I guess I should expect this to get done sometime tomorrow.

    riley
  13. Yash

    Yash Bass

    No, it was a government holiday yesterday. Your request will be done shortly.
  14. riley

    riley Perch

    Your tech people took care of the issue very fast, but they didn't tell me that the server is not configured to allow dynamic pages (asp/aspx/etc.) for custom errors. Unfortunately, the page I specified was an aspx page. I'm not sure why they didn't tell me that when I requested it.

    After they told me this early today, I created a static (html) file to handle it and emailed them, asking them to set redirection for 404 errors to error/err404.htm. I'm still waiting, but when they get this done, I'm confident it will work fine.

    The important thing to note for the forum is that the way the server is currently configured, custom errors can only be handled by static pages.

    riley
  15. yorri

    yorri Perch

    I've tried everything as well and nothing seems to work....


    Just ANOTHER thing that hasn't worked since switching to the new servers.
  16. Yash

    Yash Bass

    Open a ticket and we'll do this manually yorri
    riley, your pages will be set shortly. Our windows administrators was actually trying to get dynamic pages to work. I'll have him set the static pages anyway immediately however
  17. riley

    riley Perch

    Actually, the tech people set up my redirect last night and it did work, to some degree. By that, I mean the page actually did show up when I entered the url for a non-existant page. The problem is that I had them set up an aspx page, so the only thing that showed up was the static content from the page. I'm not sure why they didn't mention the static/dynamic issue when I requested set up of an aspx page.

    Via email, I told them just to restore the default IIS page. Then I figured out a static page solution I could live with. So, I uploaded it and sent another email (as part of the ticket email thead) this afternoon.

    It's been about 8 hours and haven't heard anything.
    Yash, should I open a new ticket?

    riley
  18. Yash

    Yash Bass

    Yes, open a new ticket please. Our administrator may have interpreted what you wanted incorrectly
  19. yorri

    yorri Perch

    I just added it to the domain down ticket.

    I have to say Yash...this latest upgrade has been the worst experience I have ever had to deal with...everytime I turn around there is another thing that doesn't work.

    I am sure you are doing your best and these are not deliberately set but this is why my concern over proper testing when I brought up the issue months ago. Over the past 3 years of dealing with webhosts...I would have to say 99% of all the problems were due to upgrading software or hardware because everything seemed to work fine in between. My experience at Jodohost seems to be the same where everything is fine until something is upgraded.

    It's great that things get fixed quickly but I am now wishing I was on the old server. Everything was working fine there. Since then I have had 6 separate things that haven't worked and there have been even more problems that other people have had that didn't relate to me...This seems a little excessive.

    Just glad you have such good customer service..otherwise I would be outta here.
  20. Yash

    Yash Bass

    The only 2 issues on the windows2003 servers are custom error pages and this mysterious DNS problem. Custom error pages is due to a bug in HSphere, we have to do this manully. DNS issue is being investigated. We didn't upgrade anything on the DNS server. We are running Bind 8 on RedHatLinux 7.3. The same configuration on the old cluster

    Windows 2003 will provide better stability in the long term. We have been running all our windows 2003 web servers for 2 months without any dowtime. Only downtime was yesterday with win1.

Share This Page

JodoHost - 26,000 hosting end-users in 100 countries
Plesk Web Hosting
VPS Hosting
H-Sphere Web Hosting
Other Services