Search This Blog

Labels

adobe (1) android (3) apache (3) aviation (1) bash (2) chrome (2) composer (1) cookery (3) dev (2) dodanperks (1) extensions (1) facebook (2) firefox (1) git (2) grafana (1) guzzle (1) headaches (11) htaccess (1) html5 (2) jquery (2) lamp (1) life hacks (10) linux (28) mysqli (2) native (1) opera (2) php (10) railfanning (1) reactjs (3) reactnative (1) servers (11) sinhala (1) smartphones (2) snap (1) sound (1) tech (22) troubleshoots (4) ubuntu (29) unicode (4) virtualbox (1) wamp (2) web (11) windows (4) wordpress (3) youtube (2) කෑම (3)

Tuesday, 29 July 2014

Servers: Apache AllowOverride

The main goal of AllowOverride is for the manager of main configuration files of apache (the one found in
/etc/apache2/
mainly) to decide which part of the configuration may be dynamically altered on a per-path basis by applications.

If you are not the administrator of the server, you depend on the
AllowOverride
Level that theses admins allows for you. So that they can prevent you to alter some important security settings;

If you are the master apache configuration manager you should always use
AllowOverride
None and transfer all google_based example you find, based on
.htaccess
files to Directory sections on the main configuration files. As a
.htaccess
content for a
.htaccess
file in
/my/path/to/a/directory
is the same as a
<Directory my/path/to/a/directory>
instruction, except that the
.htaccess
dynamic per-HTTP-request configuration alteration is something slowing down your web server. Always prefer a static configuration without
.htaccess
checks (and you will also avoid security attacks by
.htaccess
alterations).

By the way in your example you use <Directory> and this will always be wrong, Directory instructions are always containing a path, like <Directory /> or
<Directory C:>
or
<Directory /my/path/to/a/directory>
. And of course this cannot be put in a
.htaccess
as a
.htaccess
is like a Directory instruction but in a file present in this directory. Of course you cannot alter
AllowOverride
in a
.htaccess
as this instruction is managing the security level of
.htaccess
files.

No comments:

Post a Comment