• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Apache 2 Test Page?

Azurel

Silver Pleskian
I have ban a IP from my server (testing purpose) with deny from in httpd.conf. Now this IP see a side with "Apache 2 Test Page - powered by CentOS"
I wand a "forbidden" page, not a "apache 2 test page".

Founded in /etc/httpd/conf.d/welcome.conf
<LocationMatch "^/+$">
Options -Indexes
ErrorDocument 403 /error/noindex.html
</LocationMatch>
This is the test page side: http://ip/error/noindex.html

But why noindex.html and not forbidden for deny from?

Solution: comment out "ErrorDocument 403 /error/noindex.html" and its working fine. ;)
 
Last edited:
Back
Top