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) |
use AppSubUrl as prefix for routes in FCGI mode
-rw-r--r-- | cmd/web.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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{ |