summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cmd/web.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/web.go b/cmd/web.go
index 0c62c8c291..e3d209a0ab 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -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{