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 127.0.0.1:9000.

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

Now load the mod_fastcgi.so module into Apache.

LoadModule fastcgi_module modules/mod_fastcgi.so

Then you can configure your virtual host like this:

<VirtualHost *:80>
  ServerName example.org

  DocumentRoot    /path/to/luminos/bin/
  FastCgiExternalServer /path/to/luminos/bin/luminos -host 127.0.0.1:9000

  RewriteEngine On
  RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ /webroot [QSA,L]

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

</VirtualHost>

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 gosexy.org site uses Luminos too and the source code is freely available in github.

Markdown editors