Search

Search for:
Language:  

No categories for selected product

[How To] How to create custom error pages

Article ID: 5279 
Last Review: Apr, 16 2012
Views:
APPLIES TO:
  • Plesk 8.x for Windows

Resolution

This resolution can be applied if it is necessary to use .php, .asp, etc., applications on the domain. 

First, make sure that this extension is allowed in IIS and for the domain.

In Plesk Control Panel, create a virtual directory for custom error document files: Domains, domain.name, Web Directories, AddNewVirtualDirectory (This directory will be created on the server in %plesk_vhosts%\domain.name\httpdocs\.)

Create a new file (script that will be run on this error):

Domains, File Manager, httpdocs, Created Virtual Directory, Add new File

Choose created file to be processed for the needed error:

Domains, domain.name, Web Directories, Error Documents, needed error, Location

The error needs to be specified in the following manner:

Type: URI

Location: /Created_Virtual_Directory/file.name

Note: Do not create custom files in the %plesk_vhosts%\domain.name\error_docs\ directory. If you do, they will not be processed because %plesk_vhosts%\domain.name\httpdocs\ is used as a home directory for custom files.
 

For IIS 7, enable the absolute physical path in web.config through this command: 
C:\Windows\System32\inetsrv>appcmd.exe set config -section:system.webServer/httpErrors /allowAbsolutePathsWhenDelegated:true

 






Email subscription for changes to this article Email subscription for changes to this article

Please provide feedback on this article

* Did this article help you solve your issue?
Yes
No
What can we do to improve this article?

PLEASE NOTE: Knowledge Base feedback is reviewed occasionally and we do not reply to most of the individual comments. Please contact us using one of the Support channels for a response to any support inquiries. We appreciate your feedback.

Subscribe me for article updates. My email
 
 
 
 
 
 
For Home
For Hosters
For SaaS
For IaaS
For Developers
For Health Care
 
Desktop Virtualization
- Parallels Desktop 7 for Mac
- Parallels Transporter
- Parallels Mobile
- Parallels Desktop Switch to Mac Edition
- Parallels Workstation
- Parallels Workstation Extreme
- Parallels Desktop for Mac Enterprise Edition
Server Virtualization
- Parallels Server for Mac 4.0
- Parallels Server for Mac 4.0 Mac mini Edition
- Parallels Server for Mac Bare Metal Edition
- Parallels Server Bare Metal
- Parallels Virtuozzo Containers
Automation
- Parallels Operations Automation
- Parallels Automation for Cloud Infrastructure
- Parallels Business Automation
- Parallels Business Automation Standard
- Parallels Virtual Automation
- Parallels Plesk Panel Suite
- Parallels Small Business Panel
- Parallels Domain/SSL Reseller Program
- Parallels Partner Storefront
More Products