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 /cmd | |
parent | 52d66ba6c8b44b4aa28bdc2cd50acba9e22b3e66 (diff) | |
parent | 47f37e55e95011a4f6cf41541161b97b17b7b06d (diff) |
Merge pull request #628 from KylePDavis/use_url_prefix_for_fcgi
Use AppSubUrl as prefix for routes in FCGI mode
Diffstat (limited to 'cmd')
-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{ |