我正在尝试仅在域 test.test.nl 上启用 phpmyadmin。而不是 test2.nl。我正在尝试使用以下代码:
<VirtualHost *:80>
DocumentRoot /var/www/404
</VirtualHost>
<VirtualHost *:443>
ServerName test.test.nl
DocumentRoot /var/www/404
Alias /phpmyadmin /usr/share/phpmyadmin
<Directory /usr/share/phpmyadmin>
Options Indexes FollowSymLinks
DirectoryIndex index.php
# Authorize for setup
<Files setup.php>
<IfModule mod_authn_file.c>
AuthType Basic
AuthName "phpMyAdmin Setup"
AuthUserFile /etc/phpmyadmin/htpasswd.setup
</IfModule>
Require valid-user
</Files>
</Directory>
SSLEngine On
SSLCertificateFile /var/www/certificates/server.pem
</VirtualHost>
但这项工作不适合我。我也可以在https://test2.nl/phpmyadmin上联系到 phpmyadmin 。我只希望为https://test.test.nl启用它
我该怎么做?
汤姆
编辑:错字;)