Skip to content

Instantly share code, notes, and snippets.

  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save gubatron/d6e2f73026cf61ac74e1d45ce8a401b5 to your computer and use it in GitHub Desktop.
Configuration of a wordpress site served from a URL's directory (not the root) on LIGHTTPD
$HTTP["host"] =~ "^gubatron.com$|^www.gubatron.com$" {
server.document-root="/media/ebs/data/websites/gubatron.com/"
$HTTP["url"] =~ "\.git" {
url.access-deny = ("")
}
url.rewrite = (
"^/blog/wp-admin/(.*)" => "$0",
"^/blog/(.*)\.(.+)$" => "$0",
"^/blog/(.+)/?$" => "/blog/index.php/$1"
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment