|
上接“Cacti和Zabbix所需Apache安装配置(一)”(http://rolandqu.blog.51cto.com/3477736/945717)
6. httpd.conf 配置文件示例
- ServerRoot "/usr/local/apache"
- Listen 80
- LoadModule php5_module modules/libphp5.so
-
-
- User daemon
- Group daemon
-
-
- ServerAdmin you@example.com
- ServerName YourServerIpAddr:80
- DocumentRoot "/usr/local/apache/htdocs/"
-
- Options FollowSymLinks
- AllowOverride None
- Order deny,allow
- Deny from all
-
-
- Options FollowSymLinks
- AllowOverride None
- Order allow,deny
- Allow from all
-
-
- DirectoryIndex index.html index.shtml index.wml index.php index.jsp
-
-
- Order allow,deny
- Deny from all
- Satisfy All
-
-
- Order allow,deny
- Deny from all
-
-
- Order allow,deny
- Deny from all
-
-
- Order allow,deny
- Deny from all
-
-
- Order allow,deny
- Deny from all
-
-
- Order allow,deny
- Deny from all
-
-
- Order allow,deny
- Deny from all
-
- ErrorLog "logs/error_log"
- LogLevel warn
-
- LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
- LogFormat "%h %l %u %t \"%r\" %>s %b" common
-
- LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
-
-
-
- ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/"
-
-
-
-
- AllowOverride None
- Options None
- Order allow,deny
- Allow from all
-
- DefaultType text/plain
-
- TypesConfig conf/mime.types
- AddType application/x-compress .Z
- AddType application/x-gzip .gz .tgz
- AddType text/vnd.wap.wml wml
- AddType application/x-httpd-php .php
- AddType application/vnd.symbian.install .sis
- AddType application/octet-stream .sisx
- AddType application/octet-stream .cab
- AddType application/cab .cab
- AddType application/x-compress .cab
- AddType application/x-compressed .cab
- AddType zz-application/zz-winassoc-cab .cab
- AddType application/vnd.ms-cab-compressed .cab
- AddType application/java-archive .jar
- AddType text/vnd.sun.j2me.app-descriptor .jad
-
- Include conf/extra/httpd-mpm.conf
- Include conf/vhosts.conf
-
- SSLRandomSeed startup builtin
- SSLRandomSeed connect builtin
-
7. 由于博文字数限制 httpd-mpm.conf 配置示例请参看“Cacti和Zabbix所需Apache安装配置(三)”(http://rolandqu.blog.51cto.com/3477736/945740)
8. 由于博文字数限制 vhosts.conf 配置示例请参看“Cacti和Zabbix所需Apache安装配置(三)”(http://rolandqu.blog.51cto.com/3477736/945740)
|
|
|