Solved

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

Posted on 2007-03-29
7
393 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
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

706 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

16 Experts available now in Live!

Get 1:1 Help Now