【问题标题】:I have installed Apache server on Windows server 2019 and am trying to restrict phpMyAdmin from access outside of server我已经在 Windows server 2019 上安装了 Apache 服务器,并试图限制 phpMyAdmin 访问服务器外部
【发布时间】:2021-04-22 15:34:48
【问题描述】:

我已经安装了 Apache。 Windows server 2019 上的 php 和 MariaDB。没有 xampp、wamp 或任何其他平台安装程序。我想要做的是限制从服务器外部打开 phpmyadim,同时允许访问 LMS。 PhpMyAdmin 以及生产 LMS 站点位于 htdocs 文件夹中。目前 LMS 和 phpmyadmin 一样在局域网上是开放的。我假设必须在 httpd-vhosts.conf 文件中进行更改,但没有运气。在之前的安装中,我使用了 xampp。

【问题讨论】:

    标签: php mysql apache


    【解决方案1】:

    要将其设置为我认为正常的别名,请在 httpd.conf 中添加类似的包含

    Include "C:/folder_above_DocumentRoot_for_security/alias/phpMyAdmin.conf"
    

    那么conf文件的样子

    Alias /phpmyadmin "c:/Wherever/YouInstalled/phpmyadmin/"
    
    <Directory "c:/Wherever/YouInstalled/phpmyadmin/">
        Options +Indexes +FollowSymLinks +MultiViews
        AllowOverride all
        Require local
    </Directory>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-10-29
      • 2020-04-18
      • 2020-12-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-08-02
      • 1970-01-01
      相关资源
      最近更新 更多