htaccess issue

htaccess issue

از Abdullah AlAbdullah در
Number of replies: 2

Hello 

i upgrade moodle to 3.11.5 , 

i already add htaccess on  my server  to fix the error in security check . 

after i added the htaccess the moodle slow ناراحت

i see in moodle doc 

Note: When using ".htaccess" in your local Moodle install folder, you may need to include/enable "AllowOverride Directive" in "httpd.conf", first.

Note: Using .htaccess file will cause performance hit on your server!


on my server 

 # AllowOverride controls what directives may be placed in .htaccess files.

    # It can be "All", "None", or any combination of the keywords:

    #   AllowOverride FileInfo AuthConfig Limit

    #

    AllowOverride All


so must be change to "AllowOverride Directive" ??

i'm using moodle in windows server 2012 ,

using XAMPP as web server (Apache)

میانگین امتیازات: -
In reply to Abdullah AlAbdullah

Re: htaccess issue

از Leon Stringer در
تصویر Core developers تصویر Particularly helpful Moodlers

With AllowOverride All Apache will additionally scan for .htaccess when each page is accessed and apply any configuration. This takes a small amount of time which could be significant on a busy website. The advantages of this are 1) it allows individual websites to alter some configuration settings on a shared host, and 2) configuration changes can be made which take effect immediately.

The alternative is to set AllowOverride None in the main httpd.conf (or other included .conf file) and copy any settings from .htaccess into the <VirtualHost> section for that website in the main httpd.conf (or other included .conf file). The advantage of this is that you no longer have the performance overhead of scanning for and applying .htaccess for each page access. The disadvantages are that configuration changes must be made by a privileged user and the Apache service must be restarted to apply any changes.