1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Custom error pages

Discussion in 'Plesk 11.x for Windows' started by knowntobe, Feb 8, 2013.

  1. knowntobe

    knowntobe New Pleskian

    10
    35%
    Joined:
    Jan 2, 2013
    Messages:
    8
    Likes Received:
    0
    I have done some google/forum searches but so far cant find the solution to my problem

    I want to setup custom error pages on my sites. After enabling custom errors in my package settings I go to Home > Subscriptions > package > Websites & Domains > Virtual Directories > Domain.com > Error Documents
    I click 404 from the list of error codes, I now have a drop box to select : Default, File, URL. Everything I have read says I need to put in a url relative to my site/page. In this case I have a page called 404.asp. So I put in /404.asp and get :

    Error: Wrong URL format. Please enter an absolute URL within the virtual host (site).

    I tried putting in a full absolute url i.e. http://www.site.com/404.asp and that doenst work either. It does up a 302 redirect in IIS7 though but thats about it

    if I go to the site directly in IIS and set up /404.asp it works fine as expected. I was using helm before plesk and in that I just set the relative path (/404.asp) so Im not sure why this is such a pain to get working, or why it isnt more clear what I need to put in the box (if Im doing that wrong).

    if you are with me so far....
    my 404 page has a response.code = "404" to tell search engines etc the page doenst exist. In helm, on IIS6 this works fine but on IIS7 with plesk it does not. It refuses to load at all.
    I believe this is because Plesk sets up the custom page to be "Respond with a 302 redirect" using absolute url in IIS 7. If I leave the response.code in my code, it wont work, if I take it out, it does.

    so my questions are :
    - why cant I put in a relative url i.e. /404.asp?
    - why does plesk setup a 302 and not "Execute a url on this site" in IIS 7?

    Im using plesk 11 on windows web 2008, with IIS 7.5
     
  2. knowntobe

    knowntobe New Pleskian

    10
    35%
    Joined:
    Jan 2, 2013
    Messages:
    8
    Likes Received:
    0
    no help for this at all?
    plesk seems to be a nightmare to use compared to Helm, wish they offered help licences on VPS/Dedi's instead of Plesk :(
     
  3. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,572
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
Loading...