]>
Commit | Line | Data |
---|---|---|
1 | ### $Id$ | |
2 | ### | |
3 | ### Main Configuration Section | |
4 | ### | |
5 | ### This config aims to be clean and readable, you should see | |
6 | ### /usr/share/doc/apache1-*/apache.conf.dist.gz for comments on the directives. | |
7 | ### | |
8 | ||
9 | ServerType standalone | |
10 | ServerRoot "/etc/apache" | |
11 | ||
12 | ResourceConfig /dev/null | |
13 | AccessConfig /dev/null | |
14 | ||
15 | LockFile /var/run/apache.lock | |
16 | PidFile /var/run/apache.pid | |
17 | ScoreBoardFile /var/run/apache.scoreboard | |
18 | CoreDumpDirectory /var/run/apache | |
19 | ErrorLog logs/error_log | |
20 | LogLevel warn | |
21 | ||
22 | AccessFileName .htaccess | |
23 | UseCanonicalName On | |
24 | DefaultType text/plain | |
25 | ||
26 | HostnameLookups Off | |
27 | ServerSignature Email | |
28 | #AddDefaultCharset "utf-8" | |
29 | ||
30 | User http | |
31 | Group http | |
32 | ||
33 | # ServerAdmin: Your address, where problems with the server should be | |
34 | # e-mailed. This address appears on some server-generated pages, such | |
35 | # as error documents. | |
36 | ServerAdmin root@localhost | |
37 | ServerName localhost | |
38 | ||
39 | ### | |
40 | ### IP Address/Port | |
41 | ### | |
42 | #BindAddress * | |
43 | ||
44 | # Listen can take two arguments. | |
45 | # (this is an extension for supporting IPv6 addresses) | |
46 | #Listen :: 80 | |
47 | #Listen 0.0.0.0 80 | |
48 | Listen 80 | |
49 | ||
50 | ### | |
51 | ### Performance settings Section | |
52 | ### | |
53 | ||
54 | ### Timeout | |
55 | # The number of seconds before receives and sends time out. | |
56 | Timeout 300 | |
57 | ||
58 | ### KeepAlive | |
59 | # Whether or not to allow persistent connections (more than one request per | |
60 | # connection). Set to "Off" to deactivate. | |
61 | KeepAlive On | |
62 | ||
63 | ### MaxKeepAliveRequests | |
64 | # The maximum number of requests to allow during a persistent connection. | |
65 | # Set to 0 to allow an unlimited amount. We recommend you leave this number | |
66 | # high, for maximum performance. | |
67 | ||
68 | MaxKeepAliveRequests 100 | |
69 | ||
70 | ### KeepAliveTimeout | |
71 | # Number of seconds to wait for the next request from the same client on the | |
72 | # same connection. | |
73 | ||
74 | KeepAliveTimeout 15 | |
75 | ||
76 | # StartServers: number of server processes to start | |
77 | # MinSpareServers: minimum number of server processes which are kept spare | |
78 | # MaxSpareServers: maximum number of server processes which are kept spare | |
79 | # MaxClients: maximum number of server processes allowed to start | |
80 | # MaxRequestsPerChild: maximum number of requests a server process serves | |
81 | StartServers 5 | |
82 | MinSpareServers 5 | |
83 | MaxSpareServers 10 | |
84 | MaxClients 150 | |
85 | MaxRequestsPerChild 30 | |
86 | ||
87 | # This controls the directory to which Apache attempts to switch before dumping | |
88 | # core. The default is in the ServerRoot directory, however since this should | |
89 | # not be writable by the user the server runs as, core dumps won't normally get | |
90 | # written. If you want a core dump for debugging, you can use this directive to | |
91 | # place it in a different location. | |
92 | # Please note that you should also set ulimit coredumpsize to unlimited in | |
93 | # /etc/sysconfig/apache for this to have any effect. | |
94 | #CoreDumpDirectory /var/tmp | |
95 | ||
96 | # These lines here are for packages which still use apxs to activate module. | |
97 | # LoadModule access_module modules/mod_access.so | |
98 | # AddModule mod_foo.c | |
99 | ||
100 | # Include other modules and packages config. | |
101 | Include conf.d/*.conf | |
102 | # Include webapps config | |
103 | Include webapps.d/*.conf | |
104 | ||
105 | # ScriptAlias: This controls which directories contain server scripts. | |
106 | <IfModule mod_alias.c> | |
107 | ScriptAlias /cgi-bin/ "/home/services/apache/cgi-bin/" | |
108 | ||
109 | <Directory "/home/services/apache/cgi-bin"> | |
110 | AllowOverride None | |
111 | Options None | |
112 | <IfModule mod_access.c> | |
113 | Order allow,deny | |
114 | Allow from all | |
115 | </IfModule> | |
116 | </Directory> | |
117 | </IfModule> | |
118 | ||
119 | # VirtualHost: Allows the daemon to respond to requests for more than one | |
120 | # server address, if your server machine is configured to accept IP packets | |
121 | # for multiple addresses. This can be accomplished with the ifconfig | |
122 | # alias flag, or through kernel patches like VIF. | |
123 | ||
124 | # Any apache.conf conf directive may go into a VirtualHost command. | |
125 | # See also the BindAddress entry. | |
126 | ||
127 | # Setup default vhost (first one defined in config) and include vhosts configuration | |
128 | NameVirtualHost 0.0.0.0:80 | |
129 | <VirtualHost 0.0.0.0:80> | |
130 | ServerName localhost | |
131 | # ServerAdmin webmaster@host.example.com | |
132 | # DocumentRoot /www/docs/host.example.com | |
133 | # ErrorLog logs/host.example.com-error_log | |
134 | # TransferLog logs/host.example.com-access_log | |
135 | </VirtualHost> | |
136 | ||
137 | Include vhosts.d/*.conf |