]>
Commit | Line | Data |
---|---|---|
e157932f ER |
1 | # This is the main Apache HTTP server configuration file. |
2 | # It contains the configuration directives that give the server its instructions. | |
9d781f9b | 3 | # |
e157932f ER |
4 | # This config aims to be clean and readable. |
5 | # See <URL:http://httpd.apache.org/docs/2.2> for detailed information. | |
987d196f | 6 | # In particular, see |
e157932f ER |
7 | # <URL:http://httpd.apache.org/docs/2.2/mod/directives.html> |
8 | # for a discussion of each configuration directive. | |
4af76ed4 | 9 | |
58d2eaf1 AM |
10 | ServerRoot "/etc/httpd" |
11 | ||
c7fbb6d9 AM |
12 | LoadModule unixd_module modules/mod_unixd.so |
13 | ||
4af76ed4 | 14 | |
e157932f ER |
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 | |
99ce08d7 | 20 | |
9d781f9b | 21 | # Listen: Allows you to bind Apache to specific IP addresses and/or |
e157932f | 22 | # ports, instead of the default. See also the <VirtualHost> |
9d781f9b MM |
23 | # directive. |
24 | # | |
53fc5f22 | 25 | # Change this to Listen on specific IP addresses as shown below to |
e157932f ER |
26 | # prevent Apache from glomming onto all bound IP addresses. |
27 | #Listen 192.168.1.1:80 | |
9d781f9b | 28 | Listen 80 |
4af76ed4 | 29 | |
4af76ed4 | 30 | # ServerAdmin: Your address, where problems with the server should be |
31 | # e-mailed. This address appears on some server-generated pages, such | |
80da5b98 | 32 | # as error documents. e.g. admin@example.com |
4af76ed4 | 33 | # |
65cd19d5 | 34 | ServerAdmin root@example.com |
4af76ed4 | 35 | |
9d781f9b MM |
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 | # | |
4af76ed4 | 40 | # If your host doesn't have a registered DNS name, enter its IP address here. |
4af76ed4 | 41 | # |
53fc5f22 | 42 | ServerName localhost |
4af76ed4 | 43 | |
9d781f9b MM |
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. | |
e157932f | 49 | ErrorLog logs/error_log |
9d781f9b | 50 | |
9d781f9b MM |
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. | |
9d781f9b MM |
54 | LogLevel warn |
55 | ||
061ad5b2 | 56 | Timeout 60 |
50707f42 ER |
57 | KeepAlive On |
58 | MaxKeepAliveRequests 100 | |
59 | KeepAliveTimeout 5 | |
b06b509a | 60 | UseCanonicalName Off |
50707f42 | 61 | AccessFileName .htaccess |
0490814b | 62 | ServerTokens Prod |
50707f42 ER |
63 | ServerSignature On |
64 | HostnameLookups Off | |
2d070148 | 65 | #AddDefaultCharset UTF-8 |
50707f42 | 66 | |
786e71ff PG |
67 | TraceEnable Off |
68 | ||
1a1cb04d AM |
69 | # |
70 | # EnableMMAP and EnableSendfile: On systems that support it, | |
71 | # memory-mapping or the sendfile syscall may be used to deliver | |
72 | # files. This usually improves server performance, but must | |
73 | # be turned off when serving from networked-mounted | |
74 | # filesystems or if support for these functions is otherwise | |
75 | # broken on your system. | |
76 | # Defaults if commented: EnableMMAP On, EnableSendfile Off | |
77 | # | |
78 | #EnableMMAP off | |
79 | EnableSendfile on | |
80 | ||
81 | # Prevent .htaccess and .htpasswd files from being viewed by Web clients. | |
82 | <Files ".ht*"> | |
83 | Require all denied | |
84 | </Files> | |
85 | ||
86 | # Prevent backup files from being viewed, too. | |
87 | <Files "*~"> | |
88 | Require all denied | |
89 | </Files> | |
90 | ||
e157932f | 91 | # Include other modules and packages config. |
61ffca13 | 92 | IncludeOptional conf.d/*.conf |
ac2899f4 | 93 | |
e157932f | 94 | # Include webapps config |
61ffca13 | 95 | IncludeOptional webapps.d/*.conf |
775a4f24 | 96 | |
061ad5b2 AM |
97 | # |
98 | # Set a timeout for how long the client may take to send the request header | |
99 | # and body. | |
100 | # The default for the headers is header=20-40,MinRate=500, which means wait | |
101 | # for the first byte of headers for 20 seconds. If some data arrives, | |
102 | # increase the timeout corresponding to a data rate of 500 bytes/s, but not | |
103 | # above 40 seconds. | |
104 | # The default for the request body is body=20,MinRate=500, which is the same | |
105 | # but has no upper limit for the timeout. | |
106 | # To disable, set to header=0 body=0 | |
107 | # | |
108 | <IfModule reqtimeout_module> | |
109 | RequestReadTimeout header=20-40,MinRate=500 body=20,MinRate=500 | |
110 | </IfModule> | |
111 | ||
775a4f24 ER |
112 | <IfModule alias_module> |
113 | # ScriptAlias: This controls which directories contain server scripts. | |
114 | # ScriptAliases are essentially the same as Aliases, except that | |
115 | # documents in the target directory are treated as applications and | |
116 | # run by the server when requested rather than as documents sent to the | |
117 | # client. The same rules about trailing "/" apply to ScriptAlias | |
118 | # directives as to Alias. | |
119 | # | |
120 | ScriptAlias /cgi-bin/ "/home/services/httpd/cgi-bin/" | |
121 | ||
122 | <Directory "/home/services/httpd/cgi-bin"> | |
123 | AllowOverride None | |
124 | Options None | |
125 | <IfModule mod_authz_host.c> | |
40ca719a | 126 | Require all granted |
775a4f24 | 127 | </IfModule> |
e92e5081 JR |
128 | <IfModule mod_access_compat.c> |
129 | Order allow,deny | |
130 | Allow from all | |
131 | </IfModule> | |
775a4f24 ER |
132 | </Directory> |
133 | </IfModule> | |
a6f9c2c2 ER |
134 | |
135 | # VirtualHost: Allows the daemon to respond to requests for more than one | |
136 | # server address, if your server machine is configured to accept IP packets | |
137 | # for multiple addresses. This can be accomplished with the ifconfig | |
138 | # alias flag, or through kernel patches like VIF. | |
139 | ||
140 | # Any apache.conf conf directive may go into a VirtualHost command. | |
141 | # See also the BindAddress entry. | |
142 | ||
860c70b0 | 143 | # Setup default vhost (first one defined in config) and include vhosts configuration |
85805405 | 144 | <VirtualHost *:80> |
860c70b0 ER |
145 | ServerName localhost |
146 | # ServerAdmin webmaster@host.example.com | |
784c115f | 147 | # DocumentRoot /www/docs/host.example.com |
860c70b0 ER |
148 | # ErrorLog logs/host.example.com-error_log |
149 | # TransferLog logs/host.example.com-access_log | |
150 | </VirtualHost> | |
151 | ||
61ffca13 | 152 | IncludeOptional vhosts.d/*.conf |