SquidGuard is a URL redirector used to use blacklists with the proxysoftware Squid. There are two big advantages to squidguard: it is fast and it is free.
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"
)
- Log in to post comments