ubuntu下apache配置

来源:互联网 发布:ap6210 linux 编辑:程序博客网 时间:2024/04/28 03:40

在ubuntu下装好APACHE后,可以在vim /etc/apache2/sites-available/default,修改WEB目录。

 

<VirtualHost *:80>
   2     ServerAdmin zhaowei1632@gmail.com
   3
   4     DocumentRoot /home/zhaowei/www
   5     <Directory />
   6         Options FollowSymLinks
   7         AllowOverride None
   8     </Directory>
   9     <Directory /var/www/>
  10         Options Indexes FollowSymLinks MultiViews
  11         AllowOverride None
  12         Order allow,deny
  13         allow from all
  14     </Directory>
  15
  16     ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
  17     <Directory "/usr/lib/cgi-bin">
  18         AllowOverride None
  19         Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  20         Order allow,deny
  21         Allow from all
  22     </Directory>