Advertisement
Sergio_Istea

wordpress.vhost+phpmyadmin

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