Solved

Locate 403.html and 404.html files on plesk server

Posted on 2007-03-29
7
394 Views
Last Modified: 2012-06-22
Hello,

I have trouble finding my 403.html and 404.html files on my plesk server. Say my server ip address is 162.13.1.2. When someone trying to access a no exist file on http://162.13.1.2/haha.php, server will direct to 404.html, so where is this file located??? Plesk user please kindly help by giving me the full path. thank you
0
Comment
Question by:simoa
  • 3
  • 3
7 Comments
 
LVL 4

Expert Comment

by:secondv
ID: 18816877
0
 

Author Comment

by:simoa
ID: 18816975
Hello,

basically I have changed all vhosts/your-domain.com/error_docs successfully, that guide if for changing domains error doc. What I need is to change the root error docs and helps? thanks
0
 
LVL 50

Expert Comment

by:Steve Bink
ID: 18819662
Do you have access to the server as root?  You'll need it to change those files.  In many installations, you are looking for /etc/httpd/conf/httpd.conf and /etc/httpd/conf/httpd.include.
0
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 

Author Comment

by:simoa
ID: 18873303
routinet: Hi, I have root access and able to go to /etc/httpd/conf/httpd.conf but there is no /etc/httpd/conf/httpd.include... So in httpd.conf where should I edit? Thanks
0
 
LVL 50

Accepted Solution

by:
Steve Bink earned 80 total points
ID: 18873556
On my server which also uses Plesk, /etc/httpd/conf/httpd.conf has the original examples for the ErrorDocument directives, but they are commented out.  I know Plesk also insert these directives if you enable the "Custom Error Document" property for that domain.  I do not know how you would change the Plesk default error pages...I believe Plesk refreshes a number of files back to the original (like each subdomain's httpd.include).
0
 

Author Comment

by:simoa
ID: 18873570
I guess it cannot be change... I used .htaccess to forward the 403, 404 to the file I want and it works. But the .htaccess need to be place into /var/www/vhosts/default/htdocs.

0
 
LVL 50

Expert Comment

by:Steve Bink
ID: 18873633
That would be the default Plesk domain template.  You can also build a domain template inside Plesk.  Once you alter the files for your template, that configuration will be used for every new domain you create.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now