* Here is a reverse proxy configuration for apache. It then supports IPv6 and SSL
* /etc/apache2/sites-available/1_Etherpad
* http is redirected to https
* https://pad.fixme.ch/padId is redirected to https://pad.fixme.ch/p/padId
<syntaxhighlight lang="apache">
NameVirtualHost *:80Listen 80<VirtualHost *:80443>
ServerName pad.fixme.ch
ServerSignature Off
CustomLog /var/log/apache2/etherpad_access.log combined
ErrorLog /var/log/apache2/etherpad_error.log
# SSL
SSLEngine on
SSLCertificateFile /etc/ssl/pad.fixme.ch.crt
SSLCertificateKeyFile /etc/ssl/pad.fixme.ch.key
# Nice URLs
RewriteEngine On
RewriteRule /p/*$ https://pad.fixme.ch/ [NC,L]
RewriteCond %{REQUEST_URI} !^/p/
RewriteCond %{REQUEST_URI} !^/static/
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://pad.fixme.ch/p/$1 [L]
# Reverse Proxy for Etherpad