ubuntu 12.04下apache 配置家目录地址

来源:互联网 发布:淘宝试衣服模特叫什么 编辑:程序博客网 时间:2024/06/05 15:46

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 也要跟着修改
原创粉丝点击