Current time: 12-23-2024, 04:46 PM Hello There, Guest! (LoginRegister)


Post Reply 
Hide info apache
Author Message
Alex1 Offline
Junior Member
*

Posts: 96
Joined: Nov 2008
Reputation: 0
Post: #1
Hide info apache
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.
11-04-2009 10:16 PM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #2
RE: Hide info apache
Change this in your apache2.conf
Code:
# Disable ServerInfo
ServerSignature Off
ServerTokens Prod

Greez BeNe
11-05-2009 01:36 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Alex1 Offline
Junior Member
*

Posts: 96
Joined: Nov 2008
Reputation: 0
Post: #3
RE: Hide info apache
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
(This post was last modified: 11-05-2009 11:12 PM by Alex1.)
11-05-2009 11:12 PM
Find all posts by this user Quote this message in a reply
aseques Offline
Member
*****
Dev Team

Posts: 330
Joined: May 2008
Reputation: 4
Post: #4
RE: Hide info apache
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
11-05-2009 11:29 PM
Find all posts by this user Quote this message in a reply
Alex1 Offline
Junior Member
*

Posts: 96
Joined: Nov 2008
Reputation: 0
Post: #5
RE: Hide info apache
I'm using debian etch not lenny
(This post was last modified: 11-06-2009 09:32 PM by Alex1.)
11-06-2009 09:32 PM
Find all posts by this user Quote this message in a reply
Alex1 Offline
Junior Member
*

Posts: 96
Joined: Nov 2008
Reputation: 0
Post: #6
RE: Hide info apache
help, please
11-09-2009 03:47 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)