mediawiki-ssl.conf 820 B

1234567891011121314151617181920212223242526272829303132333435
  1. <VirtualHost *:80>
  2. ServerName localhost
  3. <IfModule mod_rewrite.c>
  4. RewriteEngine On
  5. RewriteCond %{HTTPS} off
  6. RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
  7. </IfModule>
  8. </VirtualHost>
  9. <VirtualHost *:443>
  10. ServerName localhost
  11. DocumentRoot /var/www/mediawiki
  12. SSLEngine on
  13. SSLProtocol all -SSLv2
  14. SSLCipherSuite HIGH:3DES:!aNULL:!MD5:!SEED:!IDEA
  15. SSLCertificateFile ssl/autofirmado.crt
  16. SSLCertificateKeyFile ssl/autofirmado.key
  17. <IfModule mod_headers.c>
  18. Header always set Strict-Transport-Security "max-age=63072000; includeSubdomains;"
  19. </IfModule>
  20. ErrorLog logs/error.log
  21. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  22. CustomLog logs/access.log common
  23. RewriteEngine On
  24. RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/index.php [L]
  25. RewriteRule ^/*$ %{DOCUMENT_ROOT}/index.php [L]
  26. </VirtualHost>