Advertisement
Sergio_Istea

phpmyadmin virtualhost

Nov 23rd, 2023
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. <VirtualHost *:80>
  2.  
  3.  
  4. ServerName phpmyadmin.laboratorio
  5.  
  6. DocumentRoot /usr/share/phpmyadmin
  7.  
  8. <Directory /usr/share/phpmyadmin>
  9. Options SymLinksIfOwnerMatch
  10. DirectoryIndex index.php
  11.  
  12. # limit libapache2-mod-php to files and directories necessary by pma
  13. <IfModule mod_php7.c>
  14. php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
  15. php_admin_value open_basedir /usr/share/phpmyadmin/:/usr/share/doc/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/:/usr/share/javascript/
  16. </IfModule>
  17.  
  18. </Directory>
  19.  
  20. # Disallow web access to directories that don't need it
  21.  
  22. <Directory /usr/share/phpmyadmin/templates>
  23. Require all denied
  24. </Directory>
  25.  
  26. <Directory /usr/share/phpmyadmin/libraries>
  27. Require all denied
  28. </Directory>
  29.  
  30. </VirtualHost>
  31.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement