Apache "Error" folder content and Red Hat default welcoming page
ls -l /var/www/error/
итого 168
-rw-r--r-- 1 root root 4256 2008-01-15 21:31 contact.html.var
-rw-r--r-- 1 root root 3077 2008-03-22 06:48 error.log
-rw-r--r-- 1 root root 9112 2008-01-15 21:31 HTTP_BAD_GATEWAY.html.var
-rw-r--r-- 1 root root 6634 2008-01-15 21:31 HTTP_BAD_REQUEST.html.var
-rw-r--r-- 1 root root 11194 2008-01-15 21:31 HTTP_FORBIDDEN.html.var
-rw-r--r-- 1 root root 12701 2008-01-15 21:31 HTTP_GONE.html.var
-rw-r--r-- 1 root root 12847 2008-01-15 21:31 HTTP_INTERNAL_SERVER_ERROR.html.var
-rw-r--r-- 1 root root 7541 2008-01-15 21:31 HTTP_LENGTH_REQUIRED.html.var
-rw-r--r-- 1 root root 6774 2008-01-15 21:31 HTTP_METHOD_NOT_ALLOWED.html.var
-rw-r--r-- 1 root root 13256 2008-01-15 21:31 HTTP_NOT_FOUND.html.var
-rw-r--r-- 1 root root 6337 2008-01-15 21:31 HTTP_NOT_IMPLEMENTED.html.var
-rw-r--r-- 1 root root 6566 2008-01-15 21:31 HTTP_PRECONDITION_FAILED.html.var
-rw-r--r-- 1 root root 7803 2008-01-15 21:31 HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
-rw-r--r-- 1 root root 7099 2008-01-15 21:31 HTTP_REQUEST_TIME_OUT.html.var
-rw-r--r-- 1 root root 7111 2008-01-15 21:31 HTTP_REQUEST_URI_TOO_LARGE.html.var
-rw-r--r-- 1 root root 7822 2008-01-15 21:31 HTTP_SERVICE_UNAVAILABLE.html.var
-rw-r--r-- 1 root root 13036 2008-01-15 21:31 HTTP_UNAUTHORIZED.html.var
-rw-r--r-- 1 root root 6353 2008-01-15 21:31 HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
-rw-r--r-- 1 root root 7010 2008-01-15 21:31 HTTP_VARIANT_ALSO_VARIES.html.var
drwxr-xr-x 2 root root 1024 2008-03-15 23:42 include/
-rw-r--r-- 1 root root 1979 2008-01-15 21:31 README
/var/www/error/include/bottom.html
From: http://www.ehowstuff.com/how-to-remove-red-hat-enterprise-linux-test-page/
итого 168
-rw-r--r-- 1 root root 4256 2008-01-15 21:31 contact.html.var
-rw-r--r-- 1 root root 3077 2008-03-22 06:48 error.log
-rw-r--r-- 1 root root 9112 2008-01-15 21:31 HTTP_BAD_GATEWAY.html.var
-rw-r--r-- 1 root root 6634 2008-01-15 21:31 HTTP_BAD_REQUEST.html.var
-rw-r--r-- 1 root root 11194 2008-01-15 21:31 HTTP_FORBIDDEN.html.var
-rw-r--r-- 1 root root 12701 2008-01-15 21:31 HTTP_GONE.html.var
-rw-r--r-- 1 root root 12847 2008-01-15 21:31 HTTP_INTERNAL_SERVER_ERROR.html.var
-rw-r--r-- 1 root root 7541 2008-01-15 21:31 HTTP_LENGTH_REQUIRED.html.var
-rw-r--r-- 1 root root 6774 2008-01-15 21:31 HTTP_METHOD_NOT_ALLOWED.html.var
-rw-r--r-- 1 root root 13256 2008-01-15 21:31 HTTP_NOT_FOUND.html.var
-rw-r--r-- 1 root root 6337 2008-01-15 21:31 HTTP_NOT_IMPLEMENTED.html.var
-rw-r--r-- 1 root root 6566 2008-01-15 21:31 HTTP_PRECONDITION_FAILED.html.var
-rw-r--r-- 1 root root 7803 2008-01-15 21:31 HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
-rw-r--r-- 1 root root 7099 2008-01-15 21:31 HTTP_REQUEST_TIME_OUT.html.var
-rw-r--r-- 1 root root 7111 2008-01-15 21:31 HTTP_REQUEST_URI_TOO_LARGE.html.var
-rw-r--r-- 1 root root 7822 2008-01-15 21:31 HTTP_SERVICE_UNAVAILABLE.html.var
-rw-r--r-- 1 root root 13036 2008-01-15 21:31 HTTP_UNAUTHORIZED.html.var
-rw-r--r-- 1 root root 6353 2008-01-15 21:31 HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
-rw-r--r-- 1 root root 7010 2008-01-15 21:31 HTTP_VARIANT_ALSO_VARIES.html.var
drwxr-xr-x 2 root root 1024 2008-03-15 23:42 include/
-rw-r--r-- 1 root root 1979 2008-01-15 21:31 README
/var/www/error/include/bottom.html
From: http://www.ehowstuff.com/how-to-remove-red-hat-enterprise-linux-test-page/
How to remove “Red Hat Enterprise Linux Test Page”
Symptoms :
After installed apache httpd on Red Hat Enterprise Linux (RHEL) server, you got the following message :
After installed apache httpd on Red Hat Enterprise Linux (RHEL) server, you got the following message :
Solution :
Go to welcome.conf file :
Go to welcome.conf file :
[root@rhel6 ~]# vi /etc/httpd/conf.d/welcome.conf
To disable the Welcome page, comment out all the lines below :
# This configuration file enables the default "Welcome"
# page if there is no default index page present for
# the root URL. To disable the Welcome page, comment
# out all the lines below.
#
Options -Indexes
ErrorDocument 403 /error/noindex.html
Comment out all the lines as below :
# This configuration file enables the default "Welcome"
# page if there is no default index page present for
# the root URL. To disable the Welcome page, comment
# out all the lines below.
#
#
# Options -Indexes
# ErrorDocument 403 /error/noindex.html
#
Reload the apache httpd service to take effect :
[root@rhel6 ~]# service httpd reload
Reloading httpd: