Running Postleaf with Apache

If you want to use Apache instead of Nginx as a reverse proxy, here's a sample config that will get you started.

<VirtualHost *:80>
    ServerAdmin you@example.com
    ServerName example.com
    ServerAlias www.example.com

    ProxyRequests off

    <Proxy *>
        Order deny,allow
        Allow from all
    </Proxy>

    <Location />
        ProxyPass http://localhost:3000/
        ProxyPassReverse http://localhost:3000/
    </Location>
</VirtualHost>

Make sure to change the highlighted values to match your own domain and the port that Postleaf is running on.

If you don't need the www subdomain, you can delete that line entirely.