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