diff options
author | 无闻 <joe2010xtmf@163.com> | 2014-11-16 06:59:01 -0500 |
---|---|---|
committer | 无闻 <joe2010xtmf@163.com> | 2014-11-16 06:59:01 -0500 |
commit | 4c770b87c5aebc33b9fdd118b332732f995d63b2 (patch) | |
tree | ac0f824619203a509676bfe090be2d61f7228068 | |
parent | 52d66ba6c8b44b4aa28bdc2cd50acba9e22b3e66 (diff) | |
parent | 47f37e55e95011a4f6cf41541161b97b17b7b06d (diff) | |
download | gitea-4c770b87c5aebc33b9fdd118b332732f995d63b2.tar.gz gitea-4c770b87c5aebc33b9fdd118b332732f995d63b2.zip |
Merge pull request #628 from KylePDavis/use_url_prefix_for_fcgi
Use AppSubUrl as prefix for routes in FCGI mode
-rw-r--r-- | cmd/web.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/web.go b/cmd/web.go index 0c62c8c291..e3d209a0ab 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{ |