diff --git a/config/puma.rb.example b/config/puma.rb.example
index e166992b8c241c9e1e0eac94f3991cd8076f9619..b1562215c1df2534905f8bd63f7412680f80bd39 100644
--- a/config/puma.rb.example
+++ b/config/puma.rb.example
@@ -3,6 +3,10 @@
 # Start Puma with next command:
 # RAILS_ENV=production bundle exec puma -e production -C ./config/puma.rb
 
+# uncomment and customize to run in non-root path
+# note that config/gitlab.yml web path should also be changed
+# ENV['RAILS_RELATIVE_URL_ROOT'] = "/gitlab"
+
 application_path = '/home/git/gitlab'
 
 # The directory to operate out of.