From 47f37e55e95011a4f6cf41541161b97b17b7b06d Mon Sep 17 00:00:00 2001 From: Kyle P Davis Date: Sun, 16 Nov 2014 00:06:09 -0500 Subject: [PATCH] use AppSubUrl as prefix for routes in FCGI mode --- cmd/web.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/web.go b/cmd/web.go index 0c62c8c291e..e3d209a0ab0 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -85,6 +85,9 @@ func newMacaron() *macaron.Macaron { if setting.EnableGzip { m.Use(macaron.Gziper()) } + if setting.Protocol == setting.FCGI { + m.SetURLPrefix(setting.AppSubUrl) + } m.Use(macaron.Static( path.Join(setting.StaticRootPath, "public"), macaron.StaticOptions{