From a9bad1a5675614ead843d7b38ae0c1298fc29cf8 Mon Sep 17 00:00:00 2001 From: Emrah URHAN Date: Mon, 6 Mar 2017 22:05:15 +0300 Subject: [PATCH] Checking if protocol is FCGI for suburl is removed to support reverse proxies with suburls --- cmd/web.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/web.go b/cmd/web.go index b6aa2dd7e..356876fc4 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -118,9 +118,7 @@ func newMacaron() *macaron.Macaron { if setting.EnableGzip { m.Use(gzip.Gziper()) } - if setting.Protocol == setting.SCHEME_FCGI { - m.SetURLPrefix(setting.AppSubUrl) - } + m.SetURLPrefix(setting.AppSubUrl) m.Use(macaron.Static( path.Join(setting.StaticRootPath, "public"), macaron.StaticOptions{