模块
mod_python
认证
AllowOverride AuthConfig
Debian 下 apache 的配置
安装
# aptitude install apache2 apache2-utils # /etc/init.d/apache2 start/stop # 启动/停止 apache
配置
/etc/apache2 和 /var/www目录
- sites-available 目录
为配置好的站点的配置文件。
- sites-enabled 目录
是指向这些配置文件的符号连接, 系统通过这些符号连接来起用站点.目录下 的符号连接附有一个数字前缀, 如000-default, 这个数字用于决定启动顺序, 数字越小, 启动优先级越高.
- /var/www
默认情况下将要发布的网页文件应该置于/var/www目录下,这一默认值可以同 过主配置文件中的DocumnetRoot 选项修改.
问题解决
fully qualified domain name
apache 启动时提示:could not reliably determine the server's fully qualified domain name...
解决方法:编辑httpd.conf,加入下面内容 ServerName localhost:80
You don't have permission to access
检查 SElinux ,检查目录权限。
