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

Here's the setup I would like to accomplish :

- virtual host "private.mywiki.com"
  - 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 "public.mywiki.com
  - I want this to load, "private.dokuwiki.com/public

- 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
</Directory>

It works, but I can't figure out how to redirect users using "public.dokuwiki.com" to "public.dokuwiki.com/public" 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
Imprint
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)