Very difficult to set reverse proxy in Apache

It's very difficult to set reverse proxy in Apache. Very bad experience. Cannot find any workable example for reference.

1 Like

If you are using docker (deploying the Joplin server and PostgreSQL) on the Apache server, the following reverse proxy conf MAY be helpful for you.

#PROXY-START/

ProxyRequests Off
SSLProxyEngine on
ProxyPreserveHost On**
ProxyPass "/joplin" http://172.17.0.2:22300 # (IP address of container and port number)
ProxyPassReverse "/joplin" http://172.17.0.2:22300 # (IP address of container and port number)

#PROXY-END/

.env file looks like this:

APP_BASE_URL=https://xxxx.com/joplin (PORT number is NOT necessary)
APP_PORT=22300

DB_CLIENT=pg
POSTGRES_PASSWORD=xxxx
POSTGRES_DATABASE=joplin
POSTGRES_USER=root
POSTGRES_PORT=5432
POSTGRES_HOST=172.17.0.3 (IP address of the container)

For reverse proxying with apache, one can follow this guide (even though it is for Raspberry Pis)

2 Likes

Thank you, buddy.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.