Skip to content

Can Plausible be used with Apache reverse proxy? #765

Discussion options

You must be logged in to vote

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.

  1. Enable the necessary modules
    sudo a2enmod proxy proxy_http proxy_ajp remoteip headers

  2. Restart apache
    sudo systemctl restart apache2

  3. Create a virtual host block for your domain
    sudo vi /etc/apache2/sites-available/plausible.example.com.conf

  4. Add the following configurations to the newly created virtual host file.

    <VirtualHost *:80>
    
     ServerAdmin admin@example.com
     ServerName plausible.example.com
    
     ProxyPreserveHost On
     ProxyPass / http://localhost:8000/
     ProxyPassReverse / http://localhost:8000/
    
    …

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@TheNomad11
Comment options

@ukutaht
Comment options

Answer selected by metmarkosaric
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants