Solved

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

Posted on 2007-03-29
7
400 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 

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 51

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
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 

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 51

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 51

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

734 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