Mantis BTを、nginxとphp-fpmの環境で、サブディレクトリーで動かす

サブディレクトリーで動かす

nginxとphp-fpmでサブディレクトリーで動かす話なのだが、 Mantis BTに限らず、PHPなウェブアプリケーションは何であっても同じような話になるような気がする。 しかし、Mantis BTしか確かめていない。

ここでは、http://example.com/its/ のようなURLで動かす例を示す。


http {
    upstream php-handler {
        server 127.0.0.1:9000;
    }
(snip)
    server{
(snip)
        # Mantis BT
        location ^~ /its {
                alias /usr/pkg/share/mantis;
                index index.php index.html;

                location ~ \.php$ {
                        include fastcgi_params;
                        fastcgi_pass php-handler;
                        fastcgi_index index.php;
                        fastcgi_param SCRIPT_FILENAME $request_filename;
                }
        }
    }
}

Mantis BTは、/usr/pkgsrc/devel/mantisから、1.3.1を導入してある。

0 件のコメント:

コメントを投稿

注: コメントを投稿できるのは、このブログのメンバーだけです。

Windows 11でwgetを使ってhttpsなウェブサイトから情報を取得する

Windows 11でhttpsなウェブサイトから情報を取得したいのだが、ウェブ上にある多くの古いwgetのWindows用のバイナリーは、TLS 1.2以降に対応しておらず私の接続先には利用できなかった。 また、このwgetを動かす環境は、ユーザー認証付きのHTTPプ...