Not logged in. · Lost password · Register
Forum: General Help and Support Installation and Configuration RSS
Use virtual hosts with DokuWiki
arct #1
Member since Jul 2006 · 1 post
Group memberships: Members
Show profile · Link to this post
Subject: Use virtual hosts with DokuWiki

Here's the setup I would like to accomplish :

- virtual host ""
  - Document root : /var/www/dokuwiki.
  - I want this to load the root of the website.
  - There will be an ACL on the page.

- Virtual host "
  - I want this to load, "

- I already have this in my apache2 config file :
<Directory /var/www/dokuwiki>
RewriteEngine on
RewriteBase /
RewriteRule ^_media/(.*)              lib/exe/fetch.php?media=$1  [QSA,L]
RewriteRule ^_detail/(.*)             lib/exe/detail.php?media=$1  [QSA,L]
RewriteRule ^_export/([^/]+)/(.*)     doku.php?do=export_$1&id=$2  [QSA,L]
RewriteRule ^$                        doku.php  [L]
RewriteCond %{REQUEST_FILENAME}       !-f
RewriteCond %{REQUEST_FILENAME}       !-d
RewriteRule (.*)                      doku.php?id=$1  [QSA,L]
RewriteRule ^index.php$               doku.php

It works, but I can't figure out how to redirect users using "" to "" automatically.

Any idea?
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2020-02-17, 07:41:55 (UTC +01:00)