ubuntu 12.04下apache 配置家目录地址
生活随笔
收集整理的這篇文章主要介紹了
ubuntu 12.04下apache 配置家目录地址
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
apache2 最在搞前端相關的東西,上一次也記錄了 Linux 下 LAMP環境的搭建,現在記錄一下如果改變 apache2 的家目錄地址該怎么做,改那個配置文件
-
修改配置文件 /etc/apache2/sites-available/default
1 <VirtualHost *:80>2 ServerAdmin webmaster@localhost3 4 DocumentRoot /var/www/emwebadmin/EmWebAdmin-master/output5 <Directory />6 Options FollowSymLinks7 AllowOverride None8 </Directory>9 <Directory /var/www/emwebadmin/EmWebAdmin-master/output>10 Options Indexes FollowSymLinks MultiViews11 AllowOverride None // 一開始 DocumentRoot 的默認值為 /var/www/html ,我這里將他改為 /var/www/emwebadmin/EmWebAdmin-master/output // 以及 第九行的 Directory 也要跟著修改
總結
以上是生活随笔為你收集整理的ubuntu 12.04下apache 配置家目录地址的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Ubuntu 安装和修改Apache2端
- 下一篇: Ubuntu14.04设置PATH环境变