Sfoglia il codice sorgente

use AppSubUrl as prefix for routes in FCGI mode

tags/v0.9.99
Kyle P Davis 9 anni fa
parent
commit
47f37e55e9
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3
    0
      cmd/web.go

+ 3
- 0
cmd/web.go Vedi File

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

Loading…
Annulla
Salva