ispCP - Board - Support
Hide info apache - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: Hide info apache (/thread-8331.html)



Hide info apache - Alex1 - 11-04-2009 10:16 PM

how to hide info example to me it goes that
Not Found

The requested URL /test/ was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.3 (Debian) PHP/5.2.0-8+etch15 Server at site.com Port 80

i want it goes that

Not Found

The requested URL /test/ was not found on this server.

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


RE: Hide info apache - BeNe - 11-05-2009 01:36 AM

Change this in your apache2.conf
Code:
# Disable ServerInfo
ServerSignature Off
ServerTokens Prod

Greez BeNe


RE: Hide info apache - Alex1 - 11-05-2009 11:12 PM

I did it, but he has so "/etc/apache2/apache2.conf"

Code:
#
# Based upon the NCSA server configuration files originally by Rob McCool.
#
# This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs-2.1/> for detailed information about
# the directives.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.  
#
# The configuration directives are grouped into three basic sections:
#  1. Directives that control the operation of the Apache server process as a
#     whole (the 'global environment').
#  2. Directives that define the parameters of the 'main' or 'default' server,
#     which responds to requests that aren't handled by a virtual host.
#     These directives also provide default values for the settings
#     of all virtual hosts.
#  3. Settings for virtual hosts, which allow Web requests to be sent to
#     different IP addresses or hostnames and have them handled by the
#     same Apache server process.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "/var/log/apache2/foo.log"
# with ServerRoot set to "" will be interpreted by the
# server as "//var/log/apache2/foo.log".
#

# Disable ServerInfo
ServerSignature Off
ServerTokens Prod



RE: Hide info apache - aseques - 11-05-2009 11:29 PM

In Debian lenny and newer, this variables are setup in the file: /etc/apache2/conf.d/security
Problably the changes you are doing in apache2.conf are overriden.

Cheers


RE: Hide info apache - Alex1 - 11-06-2009 09:32 PM

I'm using debian etch not lenny


RE: Hide info apache - Alex1 - 11-09-2009 03:47 AM

help, please