wordpress.conf 1.0 KB

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