Plesk 11 Error Docs
& Site Management Integration Options Developers eMail Components CloudLinux Extensions Extension Catalog Submit your Extension Plans & Pricing Support Resources FAQs Forums Knowledge Base Documentation Downloads Plesk University Release notes Blog Become a plesk 12 custom error documents Partner Russian German French Spanish Chinese Japanese Italian Language English Russian German custom error documents plesk French Spanish Chinese Japanese Italian any Search How to create custom error pages? Article ID: 5279, created on May 26, 2008, last review on Aug 24, 2016 Applies to: Plesk for Linux/Unix Plesk 12.5 for Windows Plesk 11.5 for Windows Question How to create custom error pages? Resolution On Linux Select the required subscription in the Subscription box at the top of the screen. Or, to view sites of all subscriptions, select All subscriptions. Switch on custom error documents support: Go to the Websites & Domains tab and click Hosting Settings in a website settings pane. Select the Custom error documents checkbox. Click OK. Connect to the server via FTP, and go to the error_docs directory. Edit or replace the respective files. Be sure to preserve the correct file names: 400 Bad File Request - bad_request.html 401 Unauthorized - unauthorized.html 403 Forbidden/Access denied - forbidden.html 404 Not Found - not_found.html 405 Method Not Allowed - method_not_allowed.html 406 Not Acceptable - not_acceptable.html 407 Proxy Authentication Required - proxy_authentication_required.html 412 Precondition Failed - precondition_failed.html 414 Request-URI Too Long - request-uri_too_long.html 415 Unsupported Media Type - unsupported_media_type.html 500 Internal Server Error - internal_server_error.html 501 Not Implemented - not_implemented.html 502 Bad Gateway - bad_gateway.html 503 Service Temporarily Unavailable - maintenance.html The web server will start using your error documents in a few hours, after it is restarted. On Windows If you have access to several subscriptions, select the required subscription in the Subscription box at the top of the screen. Or, to view sites of all your subscriptions, select All subscriptions. Switch on support for custom error documents. Go to the Websites & Domains tab and click the Hosting Settings button. Select the Custom error documents checkbox. Click OK. Go to the Websites & Dom
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 url relative to my site/page. In this case I have a page called 404.asp. https://kb.plesk.com/en/5279 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 https://talk.plesk.com/threads/custom-error-pages.281153/ 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 Messages: 8 Likes Received: 0 Trophy Points: 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 knowntobe, Feb 15, 2013 #2 IgorG
with your account, in the Subscription menu at the top of the screen, select the required webspace. Go to the Websites & Domains tab and click the website's domain name.Click Virtual Directories.Browse to the http://download1.parallels.com/Plesk/PP11/11.1/Doc/en-US/online/plesk-customer-guide/65215.htm directory whose preferences you want to change, and click the corresponding icon , or http://download1.parallels.com/Plesk/PP11/11.0/Doc/en-US/online/plesk-customer-guide/69455.htm click Directory Properties when inside the required directory.Change the settings as required:Name - specify virtual directory name.Path - specify the path to the physical directory to which the virtual directory is linked.Script source access - select this checkbox to allow users to access source code if either Read or Write permissions are set. Source code includes scripts custom error in ASP applications.Read permission - select this checkbox to allow users to read files or directories and their associated properties.Write permission - select this checkbox to allow users to upload files and their associated properties to the virtual directory or to change content in a write-enabled file. Write access is allowed only if browser supports the PUT feature of the HTTP 1.1 protocol.Directory browsing - select this checkbox to allow users to custom error documents see a hypertext listing of the files and subdirectories in the virtual directory. Log visits - select this checkbox if you want to store the information about visits to the virtual directory.Create application - select this checkbox to make the web directory an IIS application. The directory becomes logically independent from the rest of the website.Execute permissions - select the appropriate program execution level allowed for the virtual directory.None - allow access only to static files such as HTML or image files.Scripts only - allow running scripts only, not executables.Scripts and Executables - remove all restrictions so that all file types can be executed.Allow to use parent paths - select this checkbox to allow using double period in the path name when referring to a folder above the current directory. This enables users to move up the folder tree without knowing the folder name or the whereabouts in the hierarchy. If the option is selected, parent path directories should not have the Execute permission checkbox selected in their properties, so that applications do not have the ability of unauthorized running of programs in the parent paths.Allow application execution in MTA (multi-threaded apartment) mode - select this checkbox to allow the application execution in multi-threaded apartment (MTA) mode. Otherwise, the application will run
SSL certificates, you should activate the SSL support first.Scripting settings. You can specify what scripting languages your site will support. Learn more in the section Web Scripting Settings. Moreover, Panel supports custom per-site (per-subdomain) configuration for the PHP and ASP.NET languages. To learn more about the adjustable settings, see the sections PHP Settings and ASP.NET Settings (Windows).If you want to review the hosting settings or select the hosting features and scripting languages that should be supported on your site: If you are subscribed to several hosting packages and have access to several webspaces associated with your account, in the Subscription menu at the top of the screen, select the webspace where the website is hosted. Click the Websites & Domains tab.In the list of websites at the bottom of the screen, click the website address.Review or change the following hosting settings and options:Hosting type. The type of hosting configuration selected by default is website hosting, which means that the website is hosted on this server. You can also choose to redirect visitors to another website (this setup is also known as web forwarding); switch off web hosting service if you need to host only mailboxes and mailing lists under that domain; or suspend the website and all mailboxes and mailing lists hosted under the website's domain name.If you want to redirect visitors to another site, click the Change link, select the Forwarding option, type the destination site address, select the forwarding scheme, and click OK.If you want to switch off web service and use only e-mail services under that domain, click the Change link, select the No web hosting option, and click OK.If you want to suspend the website and all services associated with it, including mail, click the Suspend link. When you need to bring that domain or website back online, return to the Websites & Domains tab > domain name, and click the Activate link. Document root. The location of the directory where all files and subdirectories of the site will be kept. You can use the default directory called httpdocs or specify another directory. Enable SSL support. Secure Sockets Layer encryption is generally used for protecting transfer of sensitive data during online transactions on e-commerce websites that run on dedicated IP addresses. SSL certificates that participate in the encryption process are usually applied to a single domain name on a single IP address, therefore, each site that needs SSL protection must be hosted on a