Setting up Apache for Luminos

This configuration example for Apache2 depends on the mod_fastcgi module and requires Luminos to be configured as a FastCGI server.

First, configure Luminos as a FastCGI server that will listen on

# settings.yaml
  bind: ""
  port: 9000
  type: "fastcgi"

Now load the module into Apache.

LoadModule fastcgi_module modules/

Then you can configure your virtual host like this:

<VirtualHost *:80>

  DocumentRoot    /path/to/luminos/bin/
  FastCgiExternalServer /path/to/luminos/bin/luminos -host

  RewriteEngine On
  RewriteRule ^(.*)$ /webroot [QSA,L]

  <Directory /path/to/luminos/bin/>
    SetHandler fastcgi-script
    Order Deny,Allow
    Allow from all


Site examples

If you would like to see full site examples you can browse the source code of this site at the github project page.

The site uses Luminos too and the source code is freely available in github.

Markdown editors