source: install/scripts/etc/apache-ssl/httpd.conf @ 111

Revision 111, 9.2 KB checked in by anarcat, 9 years ago (diff)

[project @ alternc: changeset 2003-06-13 23:07:56 by root]
Ajout du tag *ALTERNC_ALIASES* dans httpd.conf pour les modules

Original author: root
Date: 2003-06-13 23:07:59

Line 
1#
2# Fichier de configuration principale d'Apache-SSL pour AlternC
3# $Id: httpd.conf,v 1.4 2003/06/13 23:07:59 root Exp $
4#
5
6##
7## httpd.conf -- Apache HTTP server configuration file
8##
9
10ServerType standalone
11ServerTokens Prod
12ServerRoot /etc/apache-ssl
13LockFile /var/lock/apache-ssl.lock
14PidFile /var/run/apache-ssl.pid
15ScoreBoardFile /var/run/apache-ssl.scoreboard
16
17Timeout 300
18KeepAlive On
19MaxKeepAliveRequests 500
20KeepAliveTimeout 15
21MinSpareServers 3
22MaxSpareServers 10
23StartServers 3
24MaxClients 150
25
26MaxRequestsPerChild 1000000
27#Listen %%myip%%:80
28Listen %%myip%%:443
29BindAddress %%myip%%
30
31#
32# Dynamic Shared Object (DSO) Support
33#
34# To be able to use the functionality of a module which was built as a DSO you
35# have to place corresponding `LoadModule' lines at this location so the
36# directives contained in it are actually available _before_ they are used.
37# Please read the file README.DSO in the Apache 1.3 distribution for more
38# details about the DSO mechanism and run `apache -l' for the list of already
39# built-in (statically linked and thus always available) modules in your apache
40# binary.
41#
42# Please keep this LoadModule: line here, it is needed for installation.
43LoadModule vhost_alias_module /usr/lib/apache/1.3/mod_vhost_alias.so
44# LoadModule env_module /usr/lib/apache/1.3/mod_env.so
45LoadModule config_log_module /usr/lib/apache/1.3/mod_log_config_ssl.so
46# LoadModule mime_magic_module /usr/lib/apache/1.3/mod_mime_magic.so
47LoadModule mime_module /usr/lib/apache/1.3/mod_mime_ssl.so
48LoadModule negotiation_module /usr/lib/apache/1.3/mod_negotiation.so
49LoadModule status_module /usr/lib/apache/1.3/mod_status.so
50# LoadModule info_module /usr/lib/apache/1.3/mod_info.so
51# LoadModule includes_module /usr/lib/apache/1.3/mod_include.so
52LoadModule autoindex_module /usr/lib/apache/1.3/mod_autoindex.so
53LoadModule dir_module /usr/lib/apache/1.3/mod_dir.so
54LoadModule cgi_module /usr/lib/apache/1.3/mod_cgi.so
55# LoadModule asis_module /usr/lib/apache/1.3/mod_asis.so
56# LoadModule imap_module /usr/lib/apache/1.3/mod_imap.so
57# LoadModule action_module /usr/lib/apache/1.3/mod_actions.so
58# LoadModule speling_module /usr/lib/apache/1.3/mod_speling.so
59# LoadModule userdir_module /usr/lib/apache/1.3/mod_userdir.so
60LoadModule alias_module /usr/lib/apache/1.3/mod_alias.so
61LoadModule rewrite_module /usr/lib/apache/1.3/mod_rewrite.so
62LoadModule access_module /usr/lib/apache/1.3/mod_access.so
63LoadModule auth_module /usr/lib/apache/1.3/mod_auth_ssl.so
64# LoadModule anon_auth_module /usr/lib/apache/1.3/mod_auth_anon.so
65# LoadModule dbm_auth_module /usr/lib/apache/1.3/mod_auth_dbm.so
66# LoadModule db_auth_module /usr/lib/apache/1.3/mod_auth_db.so
67# LoadModule proxy_module /usr/lib/apache/1.3/libproxy.so
68# LoadModule digest_module /usr/lib/apache/1.3/mod_digest.so
69# LoadModule cern_meta_module /usr/lib/apache/1.3/mod_cern_meta.so
70LoadModule expires_module /usr/lib/apache/1.3/mod_expires.so
71# LoadModule headers_module /usr/lib/apache/1.3/mod_headers.so
72# LoadModule usertrack_module /usr/lib/apache/1.3/mod_usertrack.so
73LoadModule unique_id_module /usr/lib/apache/1.3/mod_unique_id.so
74LoadModule setenvif_module /usr/lib/apache/1.3/mod_setenvif.so
75# LoadModule sys_auth_module /usr/lib/apache/1.3/mod_auth_sys.so
76# LoadModule put_module /usr/lib/apache/1.3/mod_put.so
77# LoadModule throttle_module /usr/lib/apache/1.3/mod_throttle.so
78LoadModule apache_ssl_module /usr/lib/apache/1.3/libssl.so
79# LoadModule allowdev_module /usr/lib/apache/1.3/mod_allowdev.so
80#LoadModule auth_mysql_module /usr/lib/apache/1.3/mod_auth_mysql.so
81# LoadModule eaccess_module /usr/lib/apache/1.3/mod_eaccess.so
82# LoadModule fastcgi_module /usr/lib/apache/1.3/mod_fastcgi.so
83LoadModule php4_module /usr/lib/apache/1.3/libphp4.so
84# LoadModule roaming_module /usr/lib/apache/1.3/mod_roaming.so
85LoadModule gzip_module /usr/lib/apache/1.3/mod_gzip.so
86
87ExtendedStatus On
88User www-data
89Group www-data
90ServerAdmin root@%%fqdn%%
91ServerName %%fqdn%%
92DocumentRoot /var/alternc/bureau
93
94<Directory />
95    Options SymLinksIfOwnerMatch
96    AllowOverride None
97</Directory>
98
99AccessFileName .htaccess
100
101<Files ~ "^\.ht">
102    Order allow,deny
103    Deny from all
104</Files>
105
106UseCanonicalName On
107TypesConfig /etc/mime.types
108DefaultType text/plain
109
110<IfModule mod_mime_magic.c>
111    MIMEMagicFile share/magic
112</IfModule>
113
114HostnameLookups On
115ErrorLog /var/log/apache-ssl/error.log
116LogLevel debug
117
118LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %T %{Host}i" full
119LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %P %T" debug
120LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
121LogFormat "%h %l %u %t \"%r\" %>s %b" common
122LogFormat "%{Referer}i -> %U" referer
123LogFormat "%{User-agent}i" agent
124
125CustomLog /var/log/apache-ssl/access.log full
126
127ServerSignature Off
128
129<Directory /usr/share/apache/icons>
130    Options Indexes MultiViews
131    AllowOverride None
132    Order allow,deny
133    Allow from all
134</Directory>
135
136ScriptAlias /cgi-bin/ /var/alternc/cgi-bin/
137
138<Directory /var/alternc/cgi-bin/>
139    Options FollowSymLinks IncludesNOEXEC ExecCGI
140    AllowOverride None
141    Order allow,deny
142    Allow from all
143    AddHandler cgi-script .cgi
144</Directory>
145
146<IfModule mod_autoindex.c>
147    IndexOptions FancyIndexing NameWidth=*
148    AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
149
150    AddIconByType (TXT,/icons/text.gif) text/*
151    AddIconByType (IMG,/icons/image2.gif) image/*
152    AddIconByType (SND,/icons/sound2.gif) audio/*
153    AddIconByType (VID,/icons/movie.gif) video/*
154
155    AddIcon /icons/binary.gif .bin .exe
156    AddIcon /icons/binhex.gif .hqx
157    AddIcon /icons/tar.gif .tar
158    AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
159    AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
160    AddIcon /icons/a.gif .ps .ai .eps
161    AddIcon /icons/layout.gif .html .shtml .htm .pdf
162    AddIcon /icons/text.gif .txt
163    AddIcon /icons/c.gif .c
164    AddIcon /icons/p.gif .pl .py
165    AddIcon /icons/f.gif .for
166    AddIcon /icons/dvi.gif .dvi
167    AddIcon /icons/uuencoded.gif .uu
168    AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
169    AddIcon /icons/tex.gif .tex
170    AddIcon /icons/bomb.gif core
171
172    AddIcon /icons/back.gif ..
173    AddIcon /icons/hand.right.gif README
174    AddIcon /icons/folder.gif ^^DIRECTORY^^
175    AddIcon /icons/blank.gif ^^BLANKICON^^
176
177    DefaultIcon /icons/unknown.gif
178    ReadmeName README
179    HeaderName HEADER
180    IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
181</IfModule>
182
183<IfModule mod_mime.c>
184    AddEncoding x-compress Z
185    AddEncoding x-gzip gz tgz
186    AddLanguage da .dk
187    AddLanguage nl .nl
188    AddLanguage en .en
189    AddLanguage et .ee
190    AddLanguage fr .fr
191    AddLanguage de .de
192    AddLanguage el .el
193    AddLanguage it .it
194    AddLanguage ja .ja
195    AddCharset ISO-2022-JP .jis
196    AddLanguage pl .po
197    AddCharset ISO-8859-2 .iso-pl
198    AddLanguage pt .pt
199    AddLanguage pt-br .pt-br
200    AddLanguage ltz .lu
201    AddLanguage ca .ca
202    AddLanguage es .es
203    AddLanguage sv .se
204    AddLanguage cz .cz
205
206    <IfModule mod_negotiation.c>
207        LanguagePriority en fr da nl et de el it ja pl pt pt-br ltz ca es sv
208    </IfModule>
209
210        AddType application/x-httpd-php .php .php3 .php4 .phtml
211        AddType application/x-httpd-php-source .phps
212
213        AddType application/x-tar .tgz
214        AddType image/bmp .bmp
215        AddType text/x-hdml .hdml
216
217</IfModule>
218
219# Default charset to iso-8859-1 (ttp://www.apache.org/info/css-security/).
220AddDefaultCharset on
221
222<IfModule mod_setenvif.c>
223    BrowserMatch "Mozilla/2" nokeepalive
224    BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
225    BrowserMatch "RealPlayer 4\.0" force-response-1.0
226    BrowserMatch "Java/1\.0" force-response-1.0
227    BrowserMatch "JDK/1\.0" force-response-1.0
228</IfModule>
229
230<IfModule mod_perl.c>
231  Alias /perl/ /var/www/perl/
232  <Location /perl>
233    SetHandler perl-script
234    PerlHandler Apache::Registry
235    Options +ExecCGI
236  </Location>
237</IfModule>
238
239<Location /server-status>
240    SetHandler server-status
241    Order deny,allow
242    Deny from all
243    Allow from %%monitor_ip%%
244</Location>
245
246DirectoryIndex index.html index.htm index.shtml index.php3 index.php4 index.phtml index.php
247
248SSLCacheServerPath /usr/lib/apache-ssl/gcache
249
250SSLCacheServerPort /var/run/gcache_port
251SSLSessionCacheTimeout 15
252SSLCACertificatePath /etc/apache-ssl
253SSLCertificateFile /etc/apache-ssl/apache.pem
254SSLVerifyClient 0
255SSLVerifyDepth 10
256SSLFakeBasicAuth
257CustomLog       /var/log/apache-ssl/ssl.log "%t %{version}c %{cipher}c %{clientcert}c"
258SSLDisable
259
260DirectoryIndex index.html index.htm index.shtml index.php3 index.php4 index.phtml index.php
261
262<VirtualHost %%myip%%:443>
263        SSLEnable
264        DocumentRoot /var/alternc/bureau
265        alias /admin/sql        /usr/share/phpmyadmin
266        alias /webmail          /usr/share/squirrelmail
267        Alias /icons/ /usr/share/apache/icons/
268#       ***ALTERNC_ALIASES***
269
270</VirtualHost>
271
272Include /etc/phpmyadmin/apache.conf
273Include /etc/squirrelmail/apache.conf
274
275<Directory /var/alternc>
276        php_value disable_functions chmod,chown,chgrp,link,symlink
277        AllowOverride AuthConfig FileInfo
278        Options Indexes Includes FollowSymLinks MultiViews
279        Order allow,deny
280        Allow from all
281</Directory>
282<Directory /var/alternc/bureau>
283        php_admin_flag safe_mode_gid off
284        php_admin_flag safe_mode off
285</Directory>
286<Directory /var/alternc/dns/%%fqdn_lettre%%/%%fqdn%%>
287        php_admin_flag safe_mode_gid off
288        php_admin_flag safe_mode off
289</Directory>
290
Note: See TracBrowser for help on using the repository browser.