]> git.pld-linux.org Git - packages/apache.git/blob - apache-httpd.conf
revert b3d7d6d, really fix regexp
[packages/apache.git] / apache-httpd.conf
1 # This is the main Apache HTTP server configuration file.
2 # It contains the configuration directives that give the server its instructions.
3 #
4 # This config aims to be clean and readable.
5 # See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
6 # In particular, see
7 # <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
8 # for a discussion of each configuration directive.
9
10 ServerRoot "/etc/httpd"
11
12 LoadModule unixd_module modules/mod_unixd.so
13
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 # ErrorLogFormat [connection|request] format
52 # Format specification for error log entries
53 # https://httpd.apache.org/docs/2.4/mod/core.html#errorlogformat
54 # There is no default value, Apache uses different built in function if
55 # ErrorLogFormat is not defined.
56 #ErrorLogFormat "[%{u}t] [%m:%l] [pid\ %P] [client\ %a] [vhost\ %v] %M"
57
58 # LogLevel: Control the number of messages logged to the error_log.
59 # Possible values include: debug, info, notice, warn, error, crit,
60 # alert, emerg.
61 LogLevel warn
62
63 Timeout 60
64 KeepAlive On
65 MaxKeepAliveRequests 100
66 KeepAliveTimeout 5
67 UseCanonicalName Off
68 AccessFileName .htaccess
69 ServerTokens Prod
70 ServerSignature On
71 HostnameLookups Off
72 #AddDefaultCharset UTF-8
73
74 TraceEnable Off
75
76 #
77 # EnableMMAP and EnableSendfile: On systems that support it, memory-mapping or
78 # the sendfile syscall may be used to deliver files.
79 # This usually improves server performance, but must be turned off when serving
80 # from networked-mounted filesystems or if support for these functions is
81 # otherwise broken on your system.
82 # Defaults if commented: EnableMMAP On, EnableSendfile Off
83 #
84 #EnableMMAP off
85 EnableSendfile on
86
87 # Include other modules and packages config.
88 IncludeOptional conf.d/*.conf
89
90 # Include webapps config
91 IncludeOptional webapps.d/*.conf
92
93 #
94 # Set a timeout for how long the client may take to send the request header
95 # and body.
96 # The default for the headers is header=20-40,MinRate=500, which means wait
97 # for the first byte of headers for 20 seconds. If some data arrives,
98 # increase the timeout corresponding to a data rate of 500 bytes/s, but not
99 # above 40 seconds.
100 # The default for the request body is body=20,MinRate=500, which is the same
101 # but has no upper limit for the timeout.
102 # To disable, set to header=0 body=0
103 #
104 <IfModule reqtimeout_module>
105         RequestReadTimeout header=20-40,MinRate=500 body=20,MinRate=500
106 </IfModule>
107
108 <IfModule alias_module>
109         # ScriptAlias: This controls which directories contain server scripts.
110         # ScriptAliases are essentially the same as Aliases, except that
111         # documents in the target directory are treated as applications and
112         # run by the server when requested rather than as documents sent to the
113         # client. The same rules about trailing "/" apply to ScriptAlias
114         # directives as to Alias.
115         #
116         ScriptAlias /cgi-bin/ "/home/services/httpd/cgi-bin/"
117
118         <Directory "/home/services/httpd/cgi-bin">
119                 AllowOverride None
120                 Options None
121                 <IfModule mod_authz_host.c>
122                         Require all granted
123                 </IfModule>
124                 <IfModule mod_access_compat.c>
125                         Order allow,deny
126                         Allow from all
127                 </IfModule>
128         </Directory>
129 </IfModule>
130
131 # VirtualHost: Allows the daemon to respond to requests for more than one
132 # server address, if your server machine is configured to accept IP packets
133 # for multiple addresses. This can be accomplished with the ifconfig
134 # alias flag, or through kernel patches like VIF.
135
136 # Any apache.conf conf directive may go into a VirtualHost command.
137 # See also the BindAddress entry.
138
139 # Setup default vhost (first one defined in config) and include vhosts configuration
140 <VirtualHost *:80>
141         ServerName localhost
142 #       ServerAdmin webmaster@host.example.com
143 #       DocumentRoot /www/docs/host.example.com
144 #       ErrorLog logs/host.example.com-error_log
145 #       TransferLog logs/host.example.com-access_log
146 </VirtualHost>
147
148 IncludeOptional vhosts.d/*.conf
This page took 0.035277 seconds and 3 git commands to generate.