apache2 - AllowOverride None, and .htaccess works -
well, not problem yet, don't understand why apache reading .htaccess
files... do:
grep -r "allowoverride" /etc
and have:
/etc/apache2/apache2.conf:# additional configuration directives. see allowoverride /etc/apache2/sites-available/default: allowoverride none /etc/apache2/sites-available/default: allowoverride none /etc/apache2/sites-available/default: # allowoverride none /etc/apache2/sites-available/default:# allowoverride none /etc/apache2/sites-available/default-ssl: allowoverride none /etc/apache2/sites-available/default-ssl: allowoverride none /etc/apache2/sites-available/default-ssl: allowoverride none /etc/apache2/sites-available/default-ssl: allowoverride none /etc/apache2/conf.d/security:# allowoverride none /etc/apache2/conf.d/localized-error-pages:# allowoverride none /etc/apache2/mods-available/userdir.conf: allowoverride fileinfo authconfig limit indexes /etc/apache2/mods-available/alias.conf: allowoverride none /etc/apache2/sites-enabled/000-default: allowoverride none /etc/apache2/sites-enabled/000-default: allowoverride none /etc/apache2/sites-enabled/000-default: # allowoverride none /etc/apache2/sites-enabled/000-default:# allowoverride none /etc/apache2/mods-enabled/alias.conf: allowoverride none grep: /etc/blkid.tab: no such file or directory
seems have no allowoverride all, why working?
but have:
/etc/apache2/mods-available/userdir.conf: allowoverride fileinfo authconfig limit indexes
although related userdir configuration, fileinfo
override bare minimum apache read htaccess files, within context.
in allowoverride documentation, have:
fileinfo
allow use of directives controlling document types (defaulttype, errordocument, forcetype, languagepriority, sethandler, setinputfilter, setoutputfilter, , mod_mime add* , remove* directives, etc.), document meta data (header, requestheader, setenvif, setenvifnocase, browsermatch, cookieexpires, cookiedomain, cookiestyle, cookietracking, cookiename), mod_rewrite directives (rewriteengine, rewriteoptions, rewritebase, rewritecond, rewriterule), mod_alias directives (redirect, redirecttemp, redirectpermanent, redirectmatch), , action mod_actions.
when allowoverride except "none", htaccess file read , depending on override options, statements in htaccess file honored. happens fileinfo
option covers lot of used directives in htaccess file.
Comments
Post a Comment