Set base URL for Etherpad Lite?

169 views
Skip to first unread message

Tim Colson

unread,
Mar 9, 2012, 6:49:53 PM3/9/12
to etherpad-open-...@googlegroups.com
(Apologies if this is double posted, but I don't see the post in the group...unless perhaps it's moderated?)

I setup Etherpad Lite on Linux at http://box.domain.com:9001 but want to access it with http://box.domain.com/pad 
(i.e. HTTP only, path based, no virtual host, port 80 to port 9001)

I followed the directions for Apache reverse proxy on https://github.com/Pita/etherpad-lite/wiki/How-to-put-Etherpad-Lite-behind-a-reverse-Proxy but had issues, so I installed NGINX and tried that config. I can get http://box.domain.com/pad to work, but clicking "new pad" links to /p/RANDOMID which breaks. I tried various additional rewrites and/or locations without success. Not to mention the other resources/URLs in addition to /p/ that need to be handled.

Any suggestions for the proxy/rewrites? 
Would it be easier to create a base URL configuration param in settings.json and submit that as a patch?
Any reason that hasn't been done already?

Thanks,
Tim
P.S. Some of the NGINX config stuff I've tried...

 location ^~ /p/ {
      proxy_pass             http://box.domain.com:9001/;
      proxy_set_header       Host $host;
      proxy_buffering off;
}

  location ^~ /pad {
      rewrite                /pad/(.*) /$1 break;
      proxy_pass             http://box.domain.com:9001/;
      proxy_redirect         / /pad/;
      proxy_set_header       Host $host;
      proxy_buffering off;
  }

Reply all
Reply to author
Forward
0 new messages