In order to enable clean urls in Drupal, I add the lines below to the lighttpd configuration file.
However I'm now working on a local server and I don't have a domain available. So I need to work with this address http://local.ip/Sites/mywebsite
I've tried to replace ["host"] with ["socket"] and replace the domain with ip and subfolders (see address above), but unsuccessfully. How can I set the configuration file to set clean urls even if I don't have a domain ?
thanks
$HTTP["host"] =~ "(^|\.)mywebsite\.com" {
server.document-root = "/var/www/sites/mywebsite"
server.errorlog = "/var/log/lighttpd/mywebsite/error.log"
server.name = "mywebsite.com"
accesslog.filename = "/var/log/lighttpd/mywebsite/access.log"
include_shell "./drupal-lua-conf.sh mywebsite.com"
url.access-deny += ( "~", ".inc", ".engine", ".install", ".info",
".module", ".sh", "sql", ".theme",
".tpl.php", ".xtmpl", "Entries",
"Repository", "Root" )
# "Fix" for Drupal SA-2006-006, requires lighttpd 1.4.13 or above
# Only serve .php files of the drupal base directory
$HTTP["url"] =~ "^/.*/.*\.php$" {
fastcgi.server = ()
url.access-deny = ("")
}
magnet.attract-physical-path-to = ("/etc/lighttpd/drupal-lua-scripts/p-.lua")
}