Skip to content

Commit 47f37e5

Browse files
committed
use AppSubUrl as prefix for routes in FCGI mode
1 parent 52d66ba commit 47f37e5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/web.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ func newMacaron() *macaron.Macaron {
8585
if setting.EnableGzip {
8686
m.Use(macaron.Gziper())
8787
}
88+
if setting.Protocol == setting.FCGI {
89+
m.SetURLPrefix(setting.AppSubUrl)
90+
}
8891
m.Use(macaron.Static(
8992
path.Join(setting.StaticRootPath, "public"),
9093
macaron.StaticOptions{

0 commit comments

Comments
 (0)