如何设置NGINX以运行phpLiteAdmin

时间:2019-02-12 20:23:04

标签: php sqlite nginx

我有一个具有以下结构的项目目录:

src
 index.php
 index.js

index.php是我的phpLiteAdmin,我像这样运行它:php -S localhost:9000

如何设置Nginx配置以公开localhost:9000

我尝试了以下操作:

    location /db/ {
            rewrite ^/pserver(/.*)$ $1 break;
            proxy_pass localhost:9000;
    }

但是当我尝试登录到管理面板时会收到404

0 个答案:

没有答案