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 件のコメント:

コメントを投稿

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

Amazon Kindle Fireタブレットで、放送大学の学生向けのインターネット配信を視聴する

放送大学では学生向けには、テレビで放送されている講義のビデオと、ラジオで放送されている講義のオーディオがウェブ上で配信されている。 これはどうやら、Widevine CDMを使っているようだ。 そして、ウェブブラウザーのuser agent stringを見て視聴で...