]>
Commit | Line | Data |
---|---|---|
1 | # $Id$ | |
2 | # | |
3 | # This is the main Apache HTTP server configuration file. | |
4 | # It contains the configuration directives that give the server its instructions. | |
5 | # | |
6 | # This config aims to be clean and readable. | |
7 | # See <URL:http://httpd.apache.org/docs/2.2> for detailed information. | |
8 | # In particular, see | |
9 | # <URL:http://httpd.apache.org/docs/2.2/mod/directives.html> | |
10 | # for a discussion of each configuration directive. | |
11 | ||
12 | ServerRoot "/etc/httpd" | |
13 | DefaultType text/plain | |
14 | ||
15 | # User/Group: The name (or #number) of the user/group to run httpd as. | |
16 | # It is usually good practice to create a dedicated user and group for | |
17 | # running httpd, as with most system services. | |
18 | User http | |
19 | Group http | |
20 | ||
21 | # Listen: Allows you to bind Apache to specific IP addresses and/or | |
22 | # ports, instead of the default. See also the <VirtualHost> | |
23 | # directive. | |
24 | # | |
25 | # Change this to Listen on specific IP addresses as shown below to | |
26 | # prevent Apache from glomming onto all bound IP addresses. | |
27 | #Listen 192.168.1.1:80 | |
28 | Listen 80 | |
29 | ||
30 | # ServerAdmin: Your address, where problems with the server should be | |
31 | # e-mailed. This address appears on some server-generated pages, such | |
32 | # as error documents. e.g. admin@example.com | |
33 | # | |
34 | ServerAdmin root@example.com | |
35 | ||
36 | # ServerName gives the name and port that the server uses to identify itself. | |
37 | # This can often be determined automatically, but we recommend you specify | |
38 | # it explicitly to prevent problems during startup. | |
39 | # | |
40 | # If your host doesn't have a registered DNS name, enter its IP address here. | |
41 | # | |
42 | ServerName localhost | |
43 | ||
44 | # ErrorLog: The location of the error log file. | |
45 | # If you do not specify an ErrorLog directive within a <VirtualHost> | |
46 | # container, error messages relating to that virtual host will be | |
47 | # logged here. If you *do* define an error logfile for a <VirtualHost> | |
48 | # container, that host's errors will be logged there and not here. | |
49 | ErrorLog logs/error_log | |
50 | ||
51 | # LogLevel: Control the number of messages logged to the error_log. | |
52 | # Possible values include: debug, info, notice, warn, error, crit, | |
53 | # alert, emerg. | |
54 | LogLevel warn | |
55 | ||
56 | Timeout 300 | |
57 | KeepAlive On | |
58 | MaxKeepAliveRequests 100 | |
59 | KeepAliveTimeout 5 | |
60 | UseCanonicalName Off | |
61 | AccessFileName .htaccess | |
62 | ServerTokens Prod | |
63 | ServerSignature On | |
64 | HostnameLookups Off | |
65 | #AddDefaultCharset UTF-8 | |
66 | ||
67 | TraceEnable Off | |
68 | ||
69 | # Include other modules and packages config. | |
70 | Include conf.d/*.conf | |
71 | ||
72 | # Include webapps config | |
73 | Include webapps.d/*.conf | |
74 | ||
75 | <IfModule alias_module> | |
76 | # ScriptAlias: This controls which directories contain server scripts. | |
77 | # ScriptAliases are essentially the same as Aliases, except that | |
78 | # documents in the target directory are treated as applications and | |
79 | # run by the server when requested rather than as documents sent to the | |
80 | # client. The same rules about trailing "/" apply to ScriptAlias | |
81 | # directives as to Alias. | |
82 | # | |
83 | ScriptAlias /cgi-bin/ "/home/services/httpd/cgi-bin/" | |
84 | ||
85 | <Directory "/home/services/httpd/cgi-bin"> | |
86 | AllowOverride None | |
87 | Options None | |
88 | <IfModule mod_authz_host.c> | |
89 | Order allow,deny | |
90 | Allow from all | |
91 | </IfModule> | |
92 | </Directory> | |
93 | </IfModule> | |
94 | ||
95 | # VirtualHost: Allows the daemon to respond to requests for more than one | |
96 | # server address, if your server machine is configured to accept IP packets | |
97 | # for multiple addresses. This can be accomplished with the ifconfig | |
98 | # alias flag, or through kernel patches like VIF. | |
99 | ||
100 | # Any apache.conf conf directive may go into a VirtualHost command. | |
101 | # See also the BindAddress entry. | |
102 | ||
103 | # Setup default vhost (first one defined in config) and include vhosts configuration | |
104 | NameVirtualHost *:80 | |
105 | <VirtualHost *:80> | |
106 | ServerName localhost | |
107 | # ServerAdmin webmaster@host.example.com | |
108 | # DocumentRoot /www/docs/host.example.com | |
109 | # ErrorLog logs/host.example.com-error_log | |
110 | # TransferLog logs/host.example.com-access_log | |
111 | </VirtualHost> | |
112 | ||
113 | Include vhosts.d/*.conf |