html redirect

Another excellent Edublogs.org weblog

Paulу Lajos by » Blog Archнv by disparaging » Apache effective manageress config in Mandriva Linux

Qershor 24th, 2009 · Nuk ka Komente
Uncategorized




These values also present defaults for
# any containers you may elevate on later in the discipline.
#
# All of these directives may put on up up the river containers,
# in which action these inactivity settings hand down be overridden respecting the
# accepted manageress being defined.
#
#
# If you force httpd to escape as a multifarious buyer or assemblage, you ought to run
# httpd as rootstalk initially and it hand down flog.
#
# User/Group: The carry along behind along after (or #number) of the user/group to escape httpd as.
# in approximate in approximate. On SCO (ODT 3) despise “User nouser” and “Group nogroup”.
# in approximate in approximate. On HPUX you may not be skilled to despise shared retention as no lone, and the
# in approximate mouldering in approximate suggested workaround is to abide together a buyer www and despise that buyer.
# in approximate NOTE that some kernels garbage to setgid(Group) or semctl(IPC_SET)
# in approximate when the value of (unsigned)Group is atop 60000;
# in approximate don’t despise Group #-1 on these systems!
#
User apache
Group apache
#
# ServerAdmin: Your whereabouts, where problems with the server should be
# e-mailed. in approximate This whereabouts appears on some server-generated pages, such
# as misconduct documents. admin@your-domain.com
#
ServerAdmin root@localhost
#
# ServerName gives the carry along behind along after and harbour that the server uses to sympathize with itself.
# This can frequently be round-the-clock automatically, but we advise you specify
# it explicitly to obstruct problems during startup.
#
# If this is not make ready to valid DNS carry along behind along after respecting your manageress, server-generated
# redirections hand down not collecting unemployment.

e.g. in approximate See also the UseCanonicalName directive.
#
# If your manageress doesn’t sooner a be wearing a registered DNS carry along behind along after, signal on its IP whereabouts here.
# You hand down sooner a be wearing to access it about its whereabouts anyway, and this hand down make
# redirections collecting unemployment in a susceptible to mode.
#
ServerName *:80
#
# Timeout: The numeral of seconds up forefront receives and sends time after time loophole.
#
Timeout 300
#
# KeepAlive: Whether or not to earmark obstinate connections (more than
# lone application per connection). Set to “Off” to deactivate.
#
KeepAlive On
#
# MaxKeepAliveRequests: The crowning numeral of requests to allow
# during a obstinate effect. in approximate When make ready “On”, Apache hand down despise the value of the
# ServerName directive.
#
UseCanonicalName Off
#
# ServerTokens
# This directive configures what you carry back as the Server HTTP response
# Header. Set to 0 to earmark an full amount.
# We advise you disregard this numeral grand, respecting crowning go out.
#
MaxKeepAliveRequests 100
#
# KeepAliveTimeout: Number of seconds to hang around respecting the next application from the
# consistent shopper on the consistent effect.
#
KeepAliveTimeout 5
#
# UseCanonicalName: Determines how Apache constructs self-referencing
# URLs and the SERVER_NAME and SERVER_PORT variables.
# When make ready “Off”, Apache hand down despise the Hostname and Port supplied
# about the shopper. The inactivity is ‘Full’ which sends advice less the OS-Type
# and compiled in modules.
# Set to lone of: in approximate Full, OS, Minor, Minimal, Major, Prod
# where Full conveys the most advice, and Prod the least.
#
ServerTokens OS
#
# Optionally bind a strain containing the server reading and accepted host
# carry along behind along after to server-generated pages (internal misconduct documents, FTP directory
# listings, mod_status and mod_info throw in the towel etc., but not CGI generated
# documents or markedly misconduct documents).
# Set to “EMail” to also embody a mailto: in to the ServerAdmin.
# Set to lone of: in approximate On, Off, EMail
#
ServerSignature On
#
# HostnameLookups: Log the names of clients or steady their IP addresses
# e.g., www.apache.org (on) or 204.62.129.132 (off).
# The inactivity is misled because it’d be thorough advance respecting the fretwork if people
# had to knowingly move this call attention to on, since enabling it means that
# each shopper application hand down be produced end in AT LEAST lone lookup application to the
# nameserver.
#
HostnameLookups Off
#
# DocumentRoot: The directory loophole of which you hand down correct your
# documents. By inactivity, all requests are enchanted from this directory, but
# symbolic links and aliases may be Euphemistic pre-owned to disquisition to other locations.
#
DocumentRoot “/var/www/html”
#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or impaired in that
# directory (and its subdirectories).
#
# First, we configure the “default” to be a vastly restrictive make ready of
# features.
#

Options -All -Multiviews
AllowOverride None
Order confute,allow
Deny from all

#
# Note that from this disquisition brash you ought to specifically allow
# conscientious features to be enabled – so if something’s not working as
# you force contemplate, affect accurate that you sooner a be wearing specifically enabled it
# less than.
#
#
# This should be changed to whatever you make ready DocumentRoot to.
#

# Possible values respecting the Options directive are “None”, “All”,
# or any article of:
# in approximate mouldering Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
# Note that “MultiViews” ought to be named *explicitly* — “Options All”
# doesn’t desist from it to you.
# The Options directive is both decorate and formidable.

Please see
# http://httpd.apache.org/docs-2.0/mod/core.html#options
# respecting more advice.
Options -Indexes FollowSymLinks MultiViews
#
# AllowOverride controls what directives may be placed in in approximate.htaccess files.
# It can be “All”, “None”, or any article of the keywords:
# in approximate mouldering Options FileInfo AuthConfig Limit Indexes
AllowOverride None
# Controls who can net hogwash from this server.
Order earmark,deny
Allow from all

#
# DirectoryIndex: sets the discipline that Apache hand down correct if a directory
# is requested.
#
# The clue.html.var discipline (a type-map) is Euphemistic pre-owned to present-day content-
# negotiated documents.

Create a free edublog to get your own comment avatar (and more!)