apache2 最在搞前端相关的东西,上一次也记录了 Linux 下 LAMP环境的搭建,现在记录一下如果改变 apache2 的家目录地址该怎么做,改那个配置文件

  • 修改配置文件 /etc/apache2/sites-available/default

      1 <VirtualHost *:80>
      2     ServerAdmin webmaster@localhost
      3 
      4     DocumentRoot /var/www/emwebadmin/EmWebAdmin-master/output
      5     <Directory />
      6         Options FollowSymLinks
      7         AllowOverride None
      8     </Directory>
      9     <Directory /var/www/emwebadmin/EmWebAdmin-master/output>
     10         Options Indexes FollowSymLinks MultiViews
     11         AllowOverride None
    // 一开始 DocumentRoot 的默认值为 /var/www/html  ,我这里将他改为 /var/www/emwebadmin/EmWebAdmin-master/output
    // 以及 第九行的 Directory 也要跟着修改

相关文章:

  • 2022-03-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-06
  • 2022-12-23
  • 2022-01-09
  • 2021-11-02
  • 2021-05-25
  • 2021-11-03
相关资源
相似解决方案