📜  nginx phpmyadmin 子目录 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:28.380000             🧑  作者: Mango

代码示例1
location ~* ^/phpmyadmin(?/.*)? {
        alias /usr/share/phpmyadmin/;
        index index.php;
        try_files $pmauri $pmauri/ =404;
        location ~ \.php$ {
            include fastcgi.conf;
            fastcgi_index index.php;
            fastcgi_param SCRIPT_FILENAME $document_root$pmauri;
            fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
        }
    }