1
0
mirror of https://gitcode.com/gitea/gitea.git synced 2025-07-21 06:05:39 +08:00

Merge pull request from KylePDavis/use_url_prefix_for_fcgi

Use AppSubUrl as prefix for routes in FCGI mode
This commit is contained in:
无闻
2014-11-16 06:59:01 -05:00

@ -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{