Browse Source

Switch to proxypass with retry=0 for etherpad

We think Apache may be caching 503 responses (possibly themselves
a result of [1]).  Set retry=0 so that we do not cache any failures
and switch to proxypass so that we can set that option.

[1] https://bz.apache.org/bugzilla/show_bug.cgi?id=37770

Change-Id: Ibd1087bc8feb288bfb8f66f4e6de61ebe8414233
James E. Blair 3 years ago
parent
commit
cc8e0cbad8
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      templates/etherpadlite.vhost.erb

+ 2
- 2
templates/etherpadlite.vhost.erb View File

@@ -74,11 +74,11 @@
74 74
           RewriteCond %{REQUEST_URI}  ^/socket.io            [NC]
75 75
           RewriteCond %{QUERY_STRING} transport=websocket    [NC]
76 76
           RewriteRule /(.*)           ws://localhost:9001/$1 [P,L]
77
-          ProxyPass        /socket.io http://localhost:9001
77
+          ProxyPass        /socket.io http://localhost:9001 retry=0
78 78
           ProxyPassReverse /socket.io http://localhost:9001
79 79
       </IfModule>
80 80
 
81
-      RewriteRule ^/(.*)$ http://localhost:9001/$1 [P]
81
+      ProxyPass  / http://localhost:9001/ retry=0
82 82
       ProxyPassReverse / http://localhost:9001/
83 83
   </IfModule>
84 84
 

Loading…
Cancel
Save