We help IT Professionals succeed at work.
Get Started

where is my 404 error page forwards link and where is forbidden 404 page in centos apache

rwniceing
rwniceing asked
on
637 Views
Last Modified: 2014-08-30
Dear Experts,

I have two questions  for my apache Centos6 VPS server with root access, please advise
Question-1
I try to setup my own error.html for 404. But when include or NOT-include  "ErrorDocument 404 /error.html" in my .htaccess file, whatever both methods will  also go to error.html page when try to go to my testing site at http://mysite.com/store/no-this-file.html  on browser(which is not existing on the store directory that just for  testing). So somehow, I let it worked before or long time ago.
I can NOT remember where or when  I made the error.html page forward work, Besides error page forwards is enabled(ErrorDocument 404 /error.html) in .htacess file, where else apache server can make it  possible.I check /usr/local/apache/htdocs/, there is no any .htaccess

When I  go to check the httpd.conf file at /etc/httpd/conf/, there is NO any about error document handle stuff

.htaccess file
==============================
ErrorDocument 404 /error.html
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>

Question-2
If I try to go to directory such as http://mysite/store on browser , it will show out
404 forbidden page, I want to know where is the forbidden page is located on my
apache Centos VPS server, I try to find it at /usr/local/apache, nothing find.
Where is the fobidden page located  ? because I want to do some css on it.

Fobidden page:
--------------------------
Forbidden

You don't have permission to access /store on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Apache/2.2.23 (Unix) mod_ssl/2.2.23 OpenSSL/1.0.0-fips mod_bwlimited/1.4 PHP/5.3.21 Server at 212.1.209.242 Port 80
Comment
Watch Question
Fixer of Problems
CERTIFIED EXPERT
Most Valuable Expert 2014
Commented:
This problem has been solved!
Unlock 2 Answers and 10 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE