ubuntu下apache配置

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

 

<VirtualHost *:80>
   2     ServerAdmin [email protected]
   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>

你可能感兴趣的:(ubuntu下apache配置)