ubuntu下apache配置
2009-12-10 19:59
85 查看
在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>
<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>
相关文章推荐
- Ubuntu Apache配置以及cgi配置方法
- Ubuntu下配置Apache的虚拟主机
- 三大Web Server:Apache、Nginx、Lighttpd在 Ubuntu10.04 LTS 下的安装配置
- Django + Apache + wsgi配置和环境搭建(ubuntu)
- Ubuntu下Apache的配置文件
- ubuntu下SVN配置多库,遇到重启Apache报错:Unkonwn DAV provider:svn
- ubuntu7.10 apache+php+mysql配置
- Ubuntu下apache配置文件路径
- 关于Ubuntu Apache配置的一些学习
- [转] Ubuntu 12.04下LAMP安装配置 (Linux+Apache+Mysql+PHP)
- Ubuntu下搭建Web服务器(Apache+PHP+MySQL)及初始配置
- Ubuntu上配置 Apache服务器和Tomcat服务器
- ubuntu apache 配置虚拟主机
- Ubuntu 14.04 Web服务器--Apache的安装和配置
- Ubuntu 配置Apache访问linux目录
- Ubuntu14.04 - Apache配置 Https
- ubuntu下apache配置https且强制http转向为https
- [转】Ubuntu+Apache+Mysql+PHP+ZendFramework 开发环境的配置
- Ubuntu16.04配置apache、mysql、php环境
- ubuntu LAMP apache 配置问题