Advertisement
Sergio_Istea

wordpress.laboratorio.conf ssl

Nov 23rd, 2023
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. <VirtualHost *:80>
  2.  
  3. ServerName wordpress.laboratorio
  4.  
  5. Redirect permanent / https://wordpress.laboratorio
  6.  
  7. ErrorLog ${APACHE_LOG_DIR}/error.log
  8. CustomLog ${APACHE_LOG_DIR}/access.log combined
  9.  
  10.  
  11.  
  12. </VirtualHost>
  13.  
  14. <VirtualHost *:443>
  15.  
  16. ServerName wordpress.laboratorio
  17.  
  18. DocumentRoot /var/www/wordpress.laboratorio
  19.  
  20. DirectoryIndex index.php
  21.  
  22.  
  23. # PHPMYADMIN
  24.  
  25. Alias /dbmanager /usr/share/phpmyadmin
  26.  
  27.  
  28. <Directory /usr/share/phpmyadmin>
  29. Options SymLinksIfOwnerMatch
  30. DirectoryIndex index.php
  31.  
  32. # limit libapache2-mod-php to files and directories necessary by pma
  33. <IfModule mod_php7.c>
  34. php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
  35. php_admin_value open_basedir /usr/share/phpmyadmin/:/usr/share/doc/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/:/usr/share/javascript/
  36. </IfModule>
  37.  
  38. </Directory>
  39.  
  40. # Disallow web access to directories that don't need it
  41.  
  42. <Directory /usr/share/phpmyadmin/templates>
  43. Require all denied
  44. </Directory>
  45.  
  46. <Directory /usr/share/phpmyadmin/libraries>
  47. Require all denied
  48. </Directory>
  49.  
  50.  
  51. ErrorLog ${APACHE_LOG_DIR}/error.log
  52. CustomLog ${APACHE_LOG_DIR}/access.log combined
  53.  
  54. SSLEngine on
  55. SSLCertificateFile /etc/apache2/ssl_keys/wordpress.laboratorio.crt
  56. SSLCertificateKeyFile /etc/apache2/ssl_keys/wordpress.laboratorio.key
  57.  
  58. </VirtualHost>
  59.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement