dokuwiki的apache安全设置 发表于 2019-03-21 更新于 2023-02-21 分类于 未归类 创建配置文件12touch /etc/apache2/sites-available/dokuwiki.confln -s /etc/apache2/sites-available/dokuwiki.conf /etc/apache2/sites-enabled/dokuwiki.conf 编辑配置文件1vim /etc/apache2/sites-available/dokuwiki.conf 内容如下 123456789<Directory /var/www/dokuwiki> order deny,allow allow from all</Directory><LocationMatch "/(data|conf|bin|inc)/"> order allow,deny deny from all satisfy all</LocationMatch> 重启apache 1service apache2 restart