Plesk Default Error Docs
Contents |
Guide cPanel WebHost Manager (WHM) Plesk SSL Certificates Specialized Help Offers & Bonuses Website Design Affiliates Helpful Resources Account Addons Billing System HostGator Blog HostGator Forums Video Tutorials Contact Us Interact and Engage Put two or more words in quotes to search for a phrase: "name servers" Prepend a plus sign plesk 12 custom error documents to a word or phrase to require its presence in an article: +cpanel Prepend a minus
Custom Error Documents Plesk
sign to a word or phrase to require its absence in an article: -windows Words of less than three characters are ignored. All searches are case-insensitive. Search [?] Support Portal Home » Plesk » Plesk 10 » Plesk 10 Client Side » Setting Up Custom Error Documents With Plesk on Windows Setting Up Custom Error Documents With Plesk on Windows Overview cPanel Plesk on Windows Plesk 10 VPS In order to setup custom error pages in Plesk on a Windows server, please do the following: Turning on Custom Error Pages Before you can use custom error pages, you must first turn them on: Login to Plesk Click on the Websites & Domains tab. Click on Hosting Settings next to the domain you are configuring. Check the box for Custom error documents. Click OK. You will be taken back to the Websites & Domains tab and it should say "Information: The settings were successfully updated" near the top of the page. Once you have Custom Error Pages turned on, you have three options for setting them up: edit the existing error documents, or create new ones. Option 1: Editing an Existing Custom Error Page The easiest way to create your own error page is to edit the ones already there: Click on the Website & Domains tab (if not already on that page). Click on File Manager. Within the Root directory, click the error_docs folder (the text link or the folder in front of the link). Click on the error page you want to edit. For example, Not_Found.html. Use Plesk's built-in HTML editor to edit the error page: Click OK to save your changes. Once saved, your changes will take effect. No additional steps necessary. Option 2: Setting up Custom Error Pages Instead of editing the existing error pages, you can create your own with different filenames, or even specify that it redirects to a specific URL instead. Step 1: Creating the New Error Page Create a new page and upload it to your domain. It can be named anything, and can be in any supported language such as HTML, PHP, ASP and ASP.NET. You can use the File Manager in Plesk to create a new file, and then edit it, or create it on your own computer and then FTP it to the server. Step 2: Telling the S
Pleskian 0 Messages: 8 Likes Received: 0 Trophy Points: 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 http://support.hostgator.com/articles/setting-up-custom-error-documents-with-plesk-on-windows 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 https://talk.plesk.com/threads/custom-error-pages.281153/ 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 knowntobe, Feb 8, 2013 #1 knowntobe New Pleskian 0 Message
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About http://serverfault.com/questions/131015/how-to-configure-custom-error-page-in-plesk-9-3-for-non-existing-folder Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a https://support.managed.com/kb/a185/how-to-create-custom-error-documents-and-custom-404-errors.aspx question and answer site for system and network administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are custom error voted up and rise to the top How to configure custom error page in Plesk 9.3 for non existing folder? [closed] up vote 2 down vote favorite I'm trying to configure Plesk in order to show website visitors a custom error html. The current hosted site is an ASP.NET site. This site shows its custom errors on error403.aspx and error404.aspx files. Now to comply with plesk, I've custom error documents created error_docs with required files like forbidden.html, etc... When user try to navigate http://mysite.com/a_missing_page.aspx, the visitor is redirected to error404.aspx correctly. But when user try to navigate to a non existent directory http://mysite.com/a_missing_folder/ the site takes me to IIS 404 regular page. Plesk has Custom error documents activated on Web hosting settings. ASP.NET Error pages defined in web.config are showing fine. But it seems plesk wont show its custom html error documents. The bottom line here is about setting up a custom error page to a directory. Is it possible to do this using Plesk or do I have to change it manually on IIS? http-status-code-404 directory custom-errors share|improve this question asked Apr 9 '10 at 16:30 Junior M 15119 closed as off-topic by HopelessN00b Jan 14 '15 at 5:00 This question does not appear to be about server, networking, or related infrastructure administration within the scope defined in the help center.If this question can be reworded to fit the rules in the help center, please edit the question. I can't see this option in Plesk. I noticed here it can be done on IIS Manager->MySite-> IIS -> Error pages. Change the current 404 to "/error404.aspx", and
which are error pages that handle IIS-level errors such as when it attempts to load an HTML file that does not exist. ASP.NET Error Pages which handle ASP.NET errors and are managed separately from IIS error pages. If you need to create custom error pages, or more commonly, custom 404 error pages, follow the instructions below. Notes: Error documents can only be configured on a per-DNN installation basis and can not be configured on a per-portal basis. Method One: Configuring IIS Error Pages. You must first create and upload your error pages to the httpdocs folder of your domain via FTP. If you are unsure how to do this please refer toHow to Use FTP to Upload, Download and Modify Files. Plesk 12.x Log in to yourControl Panel. In the Home tab, underMy Subscriptionsselect the domain you wish to manage. Click on theWebsites & Domainstab. Click theShow Morelink Click onVirtual Directories. Select theError Documentstab. Click on the error code you want to configure. SelectURL. Provide a physical URL to the error page (for example /404.aspx). ClickOK. Plesk 11.x Log in to your Control Panel. In the Home tab, under My Subscriptions select the domain you wish to manage. Click on the Websites & Domains tab. Click the Show Advanced Operations link Click on Virtual Directories. Select the Error Documents tab. Click on the error code you want to configure. Select URL. Provide a physical URL to the error page (for example /404.aspx). Click OK. Plesk 9.x Log in to your Control Panel. Click Domains and select the domain you wish to manage. Under Files select Virtual Directories. Click the Error Documents tab. Click on the error code you want to configure. Select URL. Provide a physical URL to the error page (for example /404.aspx). Click OK. Method Two: Configuring ASP.NET Error Pages This option requires you to edit your web.config file.SeeHow to Access Your Web.Config. Technical assistance for this method is not provided. Open up your web.config file. Scroll to the area in which the CustomErrors section is specified. Update your CustomErrors node to be similar to the following: