Invoice Ninja behind Apache reverse proxy

Invoice Ninja is an invoicing web application, based on the Laravel framework.
Configuring this behind an Apache 2.4 web server requires some special configuration.

These notes assume you have an already working Apache2 server configured for reverse proxy operation, and separate working web server for Invoice Ninja.

On the reverse proxy server:


<Location /invoices>
 SetOutputFilter INFLATE;proxy-html;DEFLATE
 ProxyHTMLEnable On
 ProxyHTMLExtended On

On the Invoice Ninja server:


*Note: When configuring the App on a smartphone, do not use a slash at the end of the server URL, otherwise you will get an error in the Laravel-error log:
***Symfony/… => Call to a member function each() on null {…}