wordpress.conf 986 B

1234567891011121314151617181920212223242526272829303132333435
  1. <VirtualHost *:8000>
  2. DocumentRoot /app/code
  3. ErrorLog "|/bin/cat"
  4. CustomLog "|/bin/cat" combined
  5. <Directory /app/code/>
  6. Options +FollowSymLinks
  7. AllowOverride All
  8. Require all granted
  9. </Directory>
  10. # some directories must be protected
  11. <Directory /app/code/wp-content>
  12. DirectoryIndex Off
  13. AllowOverride None
  14. <IfModule mod_php7.c>
  15. php_admin_flag engine off
  16. </IfModule>
  17. </Directory>
  18. # many wp plugins have .htaccess in them to AllowOverride is All
  19. # ARI adminer, social media plugins expose a "public" endpoint that requires us
  20. # to allow PHP to be executed as a direct entry point (as opposed to being just included
  21. # from wp core). So php_admin_flag is on
  22. <Directory /app/code/wp-content/plugins>
  23. DirectoryIndex Off
  24. AllowOverride All
  25. <IfModule mod_php7.c>
  26. php_admin_flag engine on
  27. </IfModule>
  28. </Directory>
  29. </VirtualHost>