summaryrefslogtreecommitdiff
blob: 3b3849b24240a103ee67821d6bb8a9e57ed9f2e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
# $Header: /var/cvsroot/gentoo/admin/cvs.gentoo.org/conf/apache.conf,v 1.3 2003/02/04 09:47:22 rajiv Exp $

# This file contains options which affect the main apache server and all
# virtual hosts running on this machine. If this machine is running as only
# cvs.gentoo.org you should use this file as the main apache conf file.
#
# If this server is handling other virtual hosts besides cvs.gentoo.org,
# include only the virtual host specific configurations by adding this
# line to the end of /etc/apache/conf/httpd.conf:
#
#   Include /home/httpd/gentoo-src/gentoo-xml/conf/cvs.gentoo.org-vhost.conf
#
# For the second case, you should also read the options below and use any
# as you feel are appropriate.

ServerType standalone
ServerRoot /etc/apache
User apache
Group apache
PidFile /var/run/apache.pid
ScoreBoardFile /etc/apache/apache.scoreboard
ResourceConfig /dev/null
AccessConfig /dev/null

LoadModule access_module      modules/mod_access.so
LoadModule alias_module       modules/mod_alias.so
LoadModule autoindex_module   modules/mod_autoindex.so
LoadModule cgi_module         modules/mod_cgi.so
LoadModule config_log_module  modules/mod_log_config.so
LoadModule dir_module         modules/mod_dir.so
LoadModule mime_magic_module  modules/mod_mime_magic.so
LoadModule mime_module        modules/mod_mime.so
LoadModule rewrite_module     modules/mod_rewrite.so
LoadModule setenvif_module    modules/mod_setenvif.so
LoadModule status_module      modules/mod_status.so
LoadModule userdir_module     modules/mod_userdir.so

ClearModuleList
AddModule mod_access.c
AddModule mod_alias.c
AddModule mod_autoindex.c
AddModule mod_cgi.c
AddModule mod_dir.c
AddModule mod_log_config.c
AddModule mod_mime_magic.c
AddModule mod_mime.c
AddModule mod_rewrite.c
AddModule mod_setenvif.c
AddModule mod_so.c
AddModule mod_status.c
AddModule mod_userdir.c

Port 80
Listen 80
Timeout 300
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 15
MaxSpareServers 25
StartServers 20
MaxClients 150
MaxRequestsPerChild 500

ServerName cvs.gentoo.org
ServerAdmin www@gentoo.org
DocumentRoot /home/httpd/gentoo-src/gentoo-xml/htdocs
UseCanonicalName On
HostnameLookups Off
ServerSignature On
AccessFileName .htaccess

ErrorLog logs/error_log
CustomLog logs/access_log combined
LogLevel warn

<Directory /home/httpd/cgi-bin>
    AllowOverride All
    Options ExecCGI
    Order allow,deny
    Allow from all
</Directory>

<IfModule mod_dir.c>
    DirectoryIndex index.xml index.html
</IfModule>

<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
</Files>

<IfModule mod_alias.c>
    Alias /icons/ /home/httpd/icons/
    ScriptAlias /cgi-bin/ /home/httpd/cgi-bin/
</IfModule>

<IfModule mod_autoindex.c>
	IndexOptions FancyIndexing

	AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
	AddIconByType (TXT,/icons/text.gif) text/*
	AddIconByType (IMG,/icons/image2.gif) image/*
	AddIconByType (SND,/icons/sound2.gif) audio/*
	AddIconByType (VID,/icons/movie.gif) video/*
	AddIcon /icons/binary.gif .bin .exe
	AddIcon /icons/binhex.gif .hqx
	AddIcon /icons/tar.gif .tar
	AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
	AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip .bz2
	AddIcon /icons/a.gif .ps .ai .eps
	AddIcon /icons/layout.gif .html .shtml .htm .pdf
	AddIcon /icons/text.gif .txt
	AddIcon /icons/c.gif .c
	AddIcon /icons/p.gif .pl .py .php .php3
	AddIcon /icons/f.gif .for
	AddIcon /icons/dvi.gif .dvi
	AddIcon /icons/uuencoded.gif .uu
	AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
	AddIcon /icons/tex.gif .tex
	AddIcon /icons/bomb.gif core
	AddIcon /icons/back.gif ..
	AddIcon /icons/hand.right.gif README
	AddIcon /icons/folder.gif ^^DIRECTORY^^
	AddIcon /icons/blank.gif ^^BLANKICON^^

	DefaultIcon /icons/unknown.gif

	AddDescription "GZIP compressed document" .gz
	AddDescription "tar archive" .tar
	AddDescription "GZIP compressed tar archive" .tgz

	ReadmeName README
	HeaderName HEADER

	IndexIgnore .??* *~ *# HEADER* RCS CVS *,v *,t
</IfModule>

DefaultType text/plain
<IfModule mod_mime.c>
    TypesConfig conf/mime.types
</IfModule>
<IfModule mod_mime_magic.c>
    MIMEMagicFile conf/magic
</IfModule>

<IfModule mod_alias.c>
    ScriptAlias /cgi-bin/ /home/httpd/cgi-bin/
</IfModule>

<IfModule mod_setenvif.c>
    BrowserMatch "Mozilla/2" nokeepalive
    BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
    BrowserMatch "RealPlayer 4\.0" force-response-1.0
    BrowserMatch "Java/1\.0" force-response-1.0
    BrowserMatch "JDK/1\.0" force-response-1.0
</IfModule>

<IfDefine GZIP>
	LoadModule gzip_module extramodules/mod_gzip.so
	AddModule mod_gzip.c

	Include conf/addon-modules/mod_gzip.conf
	LogFormat "%h %l %u %t \"%r\" %>s %b %b mod_gzip: %{mod_gzip_compression_ratio}npct." gzip
</IfDefine>

<IfModule mod_status.c>
	<Location /server-status>
		SetHandler server-status
		Order deny,allow
		Deny from all
		Allow from 127.0.0.1 128.193.0.10
	</Location>
	ExtendedStatus On
</IfModule>

<IfModule mod_info.c>
	<Location /server-info>
		SetHandler server-info
		Order deny,allow
		Deny from all
		Allow from 127.0.0.1 128.193.0.10
	</Location>
</IfModule>

<IfModule mod_perl.c>
	<Location /perl-status>
		SetHandler perl-script
		Order deny,allow
		Deny from all
		PerlHandler Apache::Status
		Allow from 127.0.0.1 128.193.0.10
	</Location>
</IfModule>

NameVirtualHost *
Include /home/httpd/gentoo-src/gentoo-xml/conf/cvs.gentoo.org-vhost.conf