diff options
author | Kyle P Davis <me@KylePDavis.com> | 2014-11-16 00:06:09 -0500 |
---|---|---|
committer | Kyle P Davis <me@KylePDavis.com> | 2014-11-16 00:06:09 -0500 |
commit | 47f37e55e95011a4f6cf41541161b97b17b7b06d (patch) | |
tree | ac0f824619203a509676bfe090be2d61f7228068 | |
parent | 52d66ba6c8b44b4aa28bdc2cd50acba9e22b3e66 (diff) | |
download | gitea-47f37e55e95011a4f6cf41541161b97b17b7b06d.tar.gz gitea-47f37e55e95011a4f6cf41541161b97b17b7b06d.zip |
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{ |