LoginSignup
1
1

More than 5 years have passed since last update.

Growthforecastをサブディレクトリで動かすメモ

Last updated at Posted at 2014-02-28

http://example.com/growthforecast/でgrowthforecastを動かしたい!

growthforecastを--front-proxyを指定して起動。

growthforecast.pl \
    --data-dir /opt/racelive/growthforecast/ \
    --host 127.0.0.1 \
    --front-proxy 192.168.0.1  # proxyのWAN側IPアドレス

nginxのserverディレクティブでproxy_passの設定をする。

exmaple.com.conf
    location /growthforecast {
        proxy_pass http://127.0.0.1:5125;
        proxy_set_header Host $host/growthforecast;
        rewrite ^/growthforecast/(.*) /$1 break;
    }

スラッシュが2個ついてしまうので調査中…。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1