![奇怪的 phpmyadmin 网址](https://linux22.com/image/925628/%E5%A5%87%E6%80%AA%E7%9A%84%20phpmyadmin%20%E7%BD%91%E5%9D%80.png)
我对 phpmyadmin 有疑问。只需安装 Ubuntu 20.04,然后设置 LAMP 堆栈。当我从“活动”中单击 Phpmyadmin 图标时,它会在浏览器中使用“localhostphpmyadmin”而不是“localhost/phpmyadmin”打开,如屏幕截图所示。
我怎样才能改变这一点?
注意:如果我通过 localhost/phpmyadmin 访问,phpmyadmin 工作正常。唯一的问题是当我从“活动”快捷方式启动它时。
编辑:phpmyadmin.desktop 的结果
[Desktop Entry]
Name=phpMyAdmin
Comment=MySQL management over web
Exec=sensible-browser http://localhost/phpmyadmin/
Terminal=false
Type=Application
Icon=phpmyadmin
Categories=Development;Database;
apache 000-默认.conf
<VirtualHost *:80>
ServerName localhost
ServerAdmin admin@localhost
DocumentRoot /mnt/Development
redirect permanent "/" "https://localhost/"
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
默认 SSL 配置文件
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerAdmin admin@localhost
ServerName localhost
DocumentRoot /mnt/Development
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLCertificateFile /etc/ssl/certs/apache-selfsigned.crt
SSLCertificateKeyFile /etc/ssl/private/apache-selfsigned.key
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
</VirtualHost>
</IfModule>
提前致谢,