Browse Source

Checking if protocol is FCGI for suburl is removed to support reverse proxies with suburls

pull/4248/head
Emrah URHAN 8 years ago
parent
commit
a9bad1a567
  1. 4
      cmd/web.go

4
cmd/web.go

@ -118,9 +118,7 @@ func newMacaron() *macaron.Macaron {
if setting.EnableGzip { if setting.EnableGzip {
m.Use(gzip.Gziper()) m.Use(gzip.Gziper())
} }
if setting.Protocol == setting.SCHEME_FCGI { m.SetURLPrefix(setting.AppSubUrl)
m.SetURLPrefix(setting.AppSubUrl)
}
m.Use(macaron.Static( m.Use(macaron.Static(
path.Join(setting.StaticRootPath, "public"), path.Join(setting.StaticRootPath, "public"),
macaron.StaticOptions{ macaron.StaticOptions{

Loading…
Cancel
Save