Pārlūkot izejas kodu

Enable php and .htaccess for plugins directory

Girish Ramakrishnan 7 gadi atpakaļ
vecāks
revīzija
f1fa66eca3
1 mainītis faili ar 13 papildinājumiem un 0 dzēšanām
  1. 13 0
      apache/wordpress.conf

+ 13 - 0
apache/wordpress.conf

@@ -17,6 +17,19 @@
         <IfModule mod_php7.c>
             php_admin_flag engine off
         </IfModule>
+   </Directory>
+
+    # many wp plugins have .htaccess in them to AllowOverride is All
+    # ARI adminer, social media plugins expose a "public" endpoint that requires us
+    # to allow PHP to be executed as a direct entry point (as opposed to being just included
+    # from wp core). So php_admin_flag is on
+   <Directory /app/code/wp-content/plugins>
+        DirectoryIndex Off
+        AllowOverride All
+        <IfModule mod_php7.c>
+            php_admin_flag engine on
+        </IfModule>
     </Directory>
+
 </VirtualHost>