Virtual Hosts

Create a directory to hold the virtual host config files:

cd /var/service/lighttpd/root
mkdir sites

Create a conf file for your virtual host, /var/service/lighttpd/root/sites/www.example.com.conf:

var.basedir = "/var/websites/www.example.com/"
server.document-root = basedir + "htdocs/
accesslog.filename = basedir + "logs/access.log"

Edit /var/service/lighttpd/root/lighttpd.conf and add:

# map all domains of a top-level-domain to a single document-root
$HTTP["host"] =~ "(^|\.)example\.com$" {
  include "sites/www.example.com.conf"
}

Drupal Clean-URLS:

url.rewrite-if-not-file = (
  "^\/([^\?]*)\?(.*)$" => "/index.php?q=$1&$2",
  "^\/(.*)$" => "/index.php?q=$1"
)

Recent Updates

  • PHP
    1 year 4 months ago
    PHP 7.4
  • 1 year 5 months ago
    MariaDB 10.4.12
  • 1 year 5 months ago
    Dovecot 2.3.10
  • 1 year 5 months ago
    CentOS 6 revisions
  • 1 year 5 months ago
    Copy of the revision from Wed, 08/22/2018 - 13:39.