http://localhost/phppgadmin/ -> 403 Forbidden

后端 未结 2 1052
臣服心动
臣服心动 2021-01-01 05:03

I try to install postgreSql on my wampserver

So I follow some tutorial and some other...

But when I access to localhost/phppgadmin/, an error oc

相关标签:
2条回答
  • 2021-01-01 05:13

    For things such as PhpMyAdmin, PhpPgAdmin or other dangerous tools, you don't want to risk people from the Internet exploiting security holes in these programs. As a matter of fact web server logs are full of direct access to known vulnerabilities, often leading to 404 because they target an older version.

    That being said, I would advise putting this in your configuration file:

    order deny,allow
    deny from all
    allow from 127.0.0.0/255.0.0.0 ::1/128 192.168.1.0/24
    

    Replace 192.168.1.0/24 with your LAN or VPN subnet. An SSH tunnel is another secure option.

    I am not one of these guys, but do know that if you encounter that kind of problem right after installing a package, your problem is probably adressed in the README made by the package manager. On Debian, this would have been /usr/share/doc/phppgadmin/README.Debian.

    0 讨论(0)
  • 2021-01-01 05:16

    I solve the problem by entering the line:

    Require local
    

    in the phppgadmin.conf:

    # Fichier phppgadmin.conf
    Alias /phppgadmin "C:/wamp/apps/phppgadmin5.1/"
    
    <Directory "C:/wamp/apps/phppgadmin5.1/">
        Options Indexes FollowSymLinks MultiViews
        AllowOverride all
        Require local
        Order Deny,Allow
        Allow from all
    </Directory>
    
    0 讨论(0)
提交回复
热议问题