Using Ubuntu 20.04.2 LTS, Apache/2.4.41 and phpmyadmin 4:4.9.5+dfsg1-2. i am getting "403 Forbidden" when access phpmyadmin using the public network, while it works on the same network, the configuration i use:
/etc/apache2/conf-enabled/phpmyadmin.conf:
Alias /phpmyadmin /usr/share/phpmyadmin<Directory /usr/share/phpmyadmin> AllowOverride All Options FollowSymLinks DirectoryIndex index.php Require all granted # 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/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext/:/usr/share/php/php-php-gettext/:/usr/share/javascript/:/usr/share/php/tcpdf/:/usr/share/doc/phpmyadmin/:/usr/s></IfModule></Directory># Disallow web access to directories that don't need it<Directory /usr/share/phpmyadmin/templates> Require all denied # Require all granted</Directory><Directory /usr/share/phpmyadmin/libraries> Require all denied # Require all granted</Directory>I don't have the .htaccess file exist. how can i enable access to phpmyadmin from public?