debian 修改apache的默认配置路径

来源:互联网 发布:民间小调软件下载 编辑:程序博客网 时间:2024/05/29 17:18

修改 /etc/apache2/sites-enable/000-default.conf 将DocumentRoot改成自己想要的路径

修改 /etc/apache2/apache2.conf  

<Directory /mnt/sda1/tangdi/www/>

<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>

将<Directory /var/www/> 改为 <Directory /mnt/sda1/tangdi/www/>

原创粉丝点击