A small Slim application for returning a list of pages in a MediaWiki category, ordered by Dale-Chall readability scores.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.4 KiB

  1. <IfModule mod_ssl.c>
  2. <VirtualHost _default_:443>
  3. ServerAdmin webmaster@localhost
  4. DocumentRoot /var/www/mw-category-readability/public
  5. <Directory "/var/www/mw-category-readability/public">
  6. RewriteEngine On
  7. RewriteEngine On
  8. RewriteCond %{REQUEST_FILENAME} !-f
  9. RewriteRule ^ index.php [QSA,L]
  10. # RewriteBase "/myapp/"
  11. # RewriteRule "^index\.html$" "welcome.html"
  12. </Directory>
  13. ErrorLog ${APACHE_LOG_DIR}/error.log
  14. CustomLog ${APACHE_LOG_DIR}/access.log combined
  15. # SSL Engine Switch:
  16. # Enable/Disable SSL for this virtual host.
  17. SSLEngine on
  18. # If both key and certificate are stored in the same file, only the
  19. # SSLCertificateFile directive is needed.
  20. SSLCertificateFile /etc/letsencrypt/live/wikimedia.p1k3.com/cert.pem
  21. SSLCertificateKeyFile /etc/letsencrypt/live/wikimedia.p1k3.com/privkey.pem
  22. # Server Certificate Chain:
  23. # Point SSLCertificateChainFile at a file containing the
  24. # concatenation of PEM encoded CA certificates which form the
  25. # certificate chain for the server certificate. Alternatively
  26. # the referenced file can be the same as SSLCertificateFile
  27. # when the CA certificates are directly appended to the server
  28. # certificate for convinience.
  29. SSLCertificateChainFile /etc/letsencrypt/live/wikimedia.p1k3.com/chain.pem
  30. <FilesMatch "\.(cgi|shtml|phtml|php)$">
  31. SSLOptions +StdEnvVars
  32. </FilesMatch>
  33. </VirtualHost>
  34. </IfModule>