pastebin - collaborative debugging tool
kpaste.net RSS


20-sub.conf
Posted by z0TK on Mon 6th Jun 2011 13:06
raw | new post

  1. $HTTP["host"] == "sub.domain.com" {
  2. server.document-root = "/home/user/www/subdomain.com/public_html/"
  3. #accesslog.filename = "/home/user/www/sub.domain.com/logs/access.log"
  4. url.rewrite-once = (
  5.         "^.*\.(css|jpg|jpeg|gif|png|js|ico)" => "$0",
  6.         "^(admin|install).*$" => "$0",
  7.         "^([^/\.]+)/?(?:\?(.*))$" => "index.php?page=$1&$2",
  8.         "^([^/\.]+)/?$" => "index.php?page=$1",
  9.                 "^([^/\.]+)/([^/]+)/?(?:\?(.*))$" => "index.php?page=$1&id=$2&$3",
  10.         "^([^/\.]+)/([^/]+)/?$" => "index.php?page=$1&id=$2",
  11.         "^([^/\.]+)/([^/]+)/([^/]+)/?" => "index.php?page=$1&id=$2&subpage=$3"
  12. )
  13. }

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at