Apache
Apache can serve LaiRu sites by proxying dynamic requests to LaiRu FPM.
Target
Use Apache for virtual hosts, TLS, static assets, rewrites, and access controls. Send LaiRu requests to FPM using the proxy FastCGI modules. A common pattern is to serve real files directly, rewrite friendly URLs to index.lasso, and proxy the resulting LaiRu target.
As with nginx, keep DocumentRoot and the FastCGI script filename consistent.
Examples
Working pattern
1ProxyPassMatch ^/(.*\.lasso)$ fcgi://127.0.0.1:9021/var/www/html/$1Use this as a focused starting point and adapt it in context.
Proxy .lasso requests to LaiRu FPM
1<VirtualHost *:80>2 ServerName example.test3 DocumentRoot /var/www/html4 DirectoryIndex index.lasso index.html56 RewriteEngine On7 RewriteCond %{REQUEST_FILENAME} !-f8 RewriteCond %{REQUEST_FILENAME} !-d9 RewriteRule ^ /index.lasso [QSA,L]1011 ProxyPassMatch ^/(.*\.lasso)$ fcgi://127.0.0.1:9021/var/www/html/$112</VirtualHost>Apache can serve static assets directly and pass only LaiRu requests to the process manager.