How to modify the Apache root directory under Linux


  1. Create the new directory you need to change and change the host permissions to the apache user chown -R apache:apache /mnt/www
  1. 2 Stop the Apache service service httpd stop
  1. 3 Modify the Apache configuration file, the default is in /etc/httpd/conf/httpd.conf, find the Document Root and modify it to your new path, as shown in the following image
  1. 4 and belowDirectory A new path for you, As shown in the figure below
  1. 5 After saving the configuration file, restart the Apache service and your Apache directory changes will take effect.

Recommended>>
1、Building a Python development environment from scratch
2、Linear regression ideas sorted out
3、Dont say Im lazy Im contributing to the economy
4、Professor Wang Shengjins team at Tsinghua University makes outstanding progress in human image recognition research
5、A Chinese manufacturer is still planting backdoors in phones US research firm finds

    已推荐到看一看 和朋友分享想法
    最多200字,当前共 发送

    已发送

    朋友将在看一看看到

    确定
    分享你的想法...
    取消

    分享想法到看一看

    确定
    最多200字,当前共

    发送中

    网络异常,请稍后重试

    微信扫一扫
    关注该公众号