Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <VirtualHost *:80>
- ServerName wordpress.laboratorio
- Redirect permanent / https://wordpress.laboratorio
- ErrorLog ${APACHE_LOG_DIR}/error.log
- CustomLog ${APACHE_LOG_DIR}/access.log combined
- </VirtualHost>
- <VirtualHost *:443>
- ServerName wordpress.laboratorio
- DocumentRoot /var/www/wordpress.laboratorio
- DirectoryIndex index.php
- # PHPMYADMIN
- Alias /dbmanager /usr/share/phpmyadmin
- <Directory /usr/share/phpmyadmin>
- Options SymLinksIfOwnerMatch
- DirectoryIndex index.php
- # limit libapache2-mod-php to files and directories necessary by pma
- <IfModule mod_php7.c>
- php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
- php_admin_value open_basedir /usr/share/phpmyadmin/:/usr/share/doc/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/:/usr/share/javascript/
- </IfModule>
- </Directory>
- # Disallow web access to directories that don't need it
- <Directory /usr/share/phpmyadmin/templates>
- Require all denied
- </Directory>
- <Directory /usr/share/phpmyadmin/libraries>
- Require all denied
- </Directory>
- ErrorLog ${APACHE_LOG_DIR}/error.log
- CustomLog ${APACHE_LOG_DIR}/access.log combined
- SSLEngine on
- SSLCertificateFile /etc/apache2/ssl_keys/wordpress.laboratorio.crt
- SSLCertificateKeyFile /etc/apache2/ssl_keys/wordpress.laboratorio.key
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement