Install Etherpad in a subdirectory

I was able to start Etherpad with this Etherpad installation guide .

It works on http://localhost:9000/ on my server and is delivered to Apache via reverse proxy and SSL to https://www.example.com/ .

Everything works fine, but since Etherpad is not my only application, I want it to be called via https://www.example.com/etherpad/ . How can i do this?

I tried changing ProxyPass to

 ProxyPass /etherpad/ http://localhost:9000/ ProxyPassReverse /etherpad/ http://localhost:9000/ 

which made it available in the /etherpad/ directory, but all the ressources resources in it are still delivered from / (the root directory). In the configuration file /etc/etherpad/etherpad.local.properties I did not find a suitable setting.

How can I say that the Etherpad will live in a subdirectory? I cannot use another subdomain since I would not have SSL there.

+4
source share
2 answers

I solved the problem by switching to Etherpad-Lite . Not exactly the same functionality, but enough for me.

Etherpad-Lite uses relative directories such as ../scripts/script.js instead of absolute directories (Etherpad: /scripts/script.js ).

+4
source

See Etherpad Reverse Proxy documentation

  <VirtualHost *:80> ServerAdmin support@example.org ServerName etherpad.example.org ServerSignature Off CustomLog /var/log/apache2/etherpad_access.log combined ErrorLog /var/log/apache2/etherpad_error.log ErrorLog syslog:local2 <IfModule mod_proxy.c> # the following allows "nice" urls such as https://etherpad.example.org/padname # But, some users reported issues with this RewriteEngine On RewriteRule /p/*$ https://etherpad.example.org/ [NC,L] RewriteCond %{REQUEST_URI} !^/locales/ RewriteCond %{REQUEST_URI} !^/locales.json RewriteCond %{REQUEST_URI} !^/admin RewriteCond %{REQUEST_URI} !^/p/ RewriteCond %{REQUEST_URI} !^/static/ RewriteCond %{REQUEST_URI} !^/pluginfw/ RewriteCond %{REQUEST_URI} !^/javascripts/ RewriteCond %{REQUEST_URI} !^/socket.io/ RewriteCond %{REQUEST_URI} !^/ep/ RewriteCond %{REQUEST_URI} !^/minified/ RewriteCond %{REQUEST_URI} !^/api/ RewriteCond %{REQUEST_URI} !^/ro/ RewriteCond %{REQUEST_URI} !^/error/ RewriteCond %{REQUEST_URI} !^/jserror RewriteCond %{REQUEST_URI} !/favicon.ico RewriteCond %{REQUEST_URI} !/robots.txt RewriteRule ^/+(.+)$ https://etherpad.example.org/p/$1 [L] ProxyVia On ProxyRequests Off ProxyPass / http://etherpad.internal.example.org:9001/ ProxyPassReverse / http://etherpad.internal.example.org:9001/ ProxyPreserveHost on <Proxy *> Options FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Proxy> </IfModule> </VirtualHost> 
+1
source

Source: https://habr.com/ru/post/1482809/


All Articles