-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathhttpd.conf
51 lines (43 loc) · 1.4 KB
/
httpd.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<VirtualHost *:80>
ServerName localhost
ServerAdmin [email protected]
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
LogLevel warn
SetEnv web-wiki-development-setup-baseurl http://localhost:8080
<Directory /var/www/html>
Options +FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
RewriteEngine on
RewriteBase /
# For local development only
RewriteRule ^shared - [L]
RewriteRule ^lib - [L]
RewriteRule ^doku.php - [L]
RewriteRule ^feed.php - [L]
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]
RewriteRule (.*) doku.php?id=$1 [QSA,L]
RewriteRule ^index.php$ doku.php
</Directory>
<Directory /var/www/html/bin>
Require all denied
</Directory>
<Directory /var/www/html/data>
Require all denied
</Directory>
# Newer Dokuwiki versions use Composer
<Directory /var/www/html/vendor>
Require all denied
</Directory>
# Forbid all dot files like .git or .svn
<DirectoryMatch "^\.|\/\.">
Order allow,deny
Deny from all
</DirectoryMatch>
</VirtualHost>