Browse Source

Support apache /server-status

Change-Id: I554cd3a219c20f80b45bc9a45c793a0642ad17e6
James E. Blair 3 years ago
parent
commit
9babba139e
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      templates/etherpadlite.vhost.erb

+ 7
- 0
templates/etherpadlite.vhost.erb View File

@@ -44,6 +44,13 @@
44 44
       # supporting "nice" urls as etherpad hardcodes /p/ in many places.
45 45
       # Adapted from https://github.com/ether/etherpad-lite/wiki/How-to-put-Etherpad-Lite-behind-a-reverse-Proxy
46 46
       RewriteEngine on
47
+
48
+      # Do not rewrite the /server-status URL (though by default, this
49
+      # is only accessible from localhost).  Connect to it with:
50
+      # ssh -L 8443:localhost:443 $HOSTNAME
51
+      # https://localhost:8443/server-status
52
+      RewriteRule ^/server-status$ /server-status [L]
53
+
47 54
       RewriteCond %{HTTP_HOST} !<%= scope.lookupvar("etherpad_lite::apache::vhost_name") %>
48 55
       RewriteRule ^.*$ https://<%= scope.lookupvar("etherpad_lite::apache::vhost_name") %> [L,R=301]
49 56
 

Loading…
Cancel
Save