Can Plausible be used with Apache reverse proxy? #765
-
Say, I already have Apache running as a service om my VPS. Can I still use Plausible (with docker)? In the documentation I only see reverse proxy examples with Caddy and Nginx. Thanks a lot! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Plausible can indeed run through Apache as well, examples are just only provided for Nginx and caddy. See: https://www.digitalocean.com/community/tutorials/how-to-use-apache-http-server-as-reverse-proxy-using-mod_proxy-extension for how to do so (not specific, but basic instructions apply). |
Beta Was this translation helpful? Give feedback.
-
Sure, go ahead! The only reason we don't have docs for Apache is that I've only ever used Nginx and Caddy myself. If you do find the right config for Apache, I'd love to have the instructions contributed back to our documentation. |
Beta Was this translation helpful? Give feedback.
-
How to set up Apache reverse proxy for Plausible Analytics.This is for Ubuntu but should easily be adapted for any other OS. Note: replace plausible.example.com with your desired domain.
That is all. |
Beta Was this translation helpful? Give feedback.
How to set up Apache reverse proxy for Plausible Analytics.
This is for Ubuntu but should easily be adapted for any other OS.
Note: replace plausible.example.com with your desired domain.
Enable the necessary modules
sudo a2enmod proxy proxy_http proxy_ajp remoteip headers
Restart apache
sudo systemctl restart apache2
Create a virtual host block for your domain
sudo vi /etc/apache2/sites-available/plausible.example.com.conf
Add the following configurations to the newly created virtual host file.