Here we go.
Server config
Lighttpd
PHP5
I have doku wiki installed running in the physical path of /var/www/wiki (
http://server/wiki) and I am using URL rewriting. What I am trying to do is use virtual hosts to allow my users to access the site using the url
http://wiki.
I have included the following line in my lighttpd.conf
$HTTP["host"] = "wiki" { server.document-root = "/var/www/wiki/" }
However, when I load the page, no media images display and the wiki links dont work properly. If I turn [userewrite] to a 0 or 2 the site works fine using the virtual host.
Here is a the rewrite that I am using in my lighthttpd.conf
#### dokuwiki rewrite
url.rewrite-once = (
"^/wiki/(/|index.php)?$" => "/wiki/doku.php",
"^/wiki/lib/(.*)/?$" => "/wiki/lib/$1",
"^/wiki/_media/(.*)?\?(.*)$" => "/wiki/lib/exe/fetch.php?media=$1&$2",
"^/wiki/_media/(.*)$" => "/wiki/lib/exe/fetch.php?media=$1",
"^/wiki/_detail/(.*)?\?(.*)$" => "/wiki/lib/exe/detail.php?media=$1&$2",
"^/wiki/_detail/(.*)?$" => "/wiki/lib/exe/detail.php?media=$1",
"^/wiki/_export/([^/]+)/(.*)$" => "/wiki/doku.php?do=export_$1&id=$2",
"^/wiki/(?!doku.php|feed.php|robots.txt|sitemap.xml.gz)(.*)\?(.*)/?$" => "/wiki/doku.php?id=$1&$2",
"^/wiki/(?!doku.php|feed.php|robots.txt|sitemap.xml.gz)(.*)/?$" => "/wiki/doku.php?id=$1",
)
I am thinking there is something in the rewrite thats throwing it for a loop. Any input wouldbe much appreciated.