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
|
# $Header: /var/cvsroot/gentoo/admin/www.gentoo.org/conf/vhost.conf,v 1.25 2003/09/30 20:30:50 klieber Exp $
# This file defines the www.gentoo.org and gentoo.org virtual host. On a server
# handling only gentoo.org, you should see www.gentoo.org-apache.conf instead.
# If you really want to use just this file, include it in your main apache.conf
# file (usually /etc/apache/conf/apache.conf) by adding:
#
# Include /etc/apache/conf/gentoo/admin/www.gentoo.org/conf/vhost.conf
<Directory /home/httpd/cgi-bin>
AllowOverride All
Options ExecCGI
SetHandler cgi-script
Order allow,deny
Allow from all
</Directory>
<Directory /home/httpd/icons>
Options -Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory /home/httpd/gentoo/xml/htdocs>
Options -All
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory /home/httpd/gentoo/xml/htdocs/dyn>
Options -All
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<Directory /home/httpd/gentoo/xml/images>
Options -All
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory /home/httpd/gentoo/xml/htdocs/dyn/doc-snapshots>
<IfModule mod_autoindex.c>
Options Indexes
IndexOptions FancyIndexing SuppressColumnSorting SuppressDescription
</IfModule>
AllowOverride None
</Directory>
# viewcvs acl stuff
<Location /cgi-bin/viewcvs.cgi>
Order deny,allow
Allow from all
</Location>
<Location /cgi-bin/viewcvs.cgi/gentoo-src/gentoo-xml/conf>
Order deny,allow
Deny from all
</Location>
<Location /cgi-bin/viewcvs.cgi/gentoo/admin>
Order deny,allow
Deny from all
</Location>
<Location /cgi-bin/viewcvs.cgi/gentoo-src/gentoo-xml/README>
Order deny,allow
Deny from all
</Location>
# Directive requested by pauldv
<Location /dtd>
SetHandler default-handler
</Location>
# main/default config
<VirtualHost *>
ServerAdmin www@gentoo.org
ServerName www.gentoo.org
DocumentRoot /home/httpd/gentoo/xml/htdocs
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" common
CustomLog "| /usr/sbin/cronolog /etc/apache/logs/%Y%m%d.%Z.www.gentoo.org.access-log" common
ErrorLog "| /usr/sbin/cronolog /etc/apache/logs/%Y%m%d.%Z.www.gentoo.org.error-log"
# handle images
Alias /images /home/httpd/gentoo/xml/images
# icons for viewcvs
Alias /icons /home/httpd/icons
# include the redirects conf file
Include /etc/apache/conf/gentoo/admin/www.gentoo.org/conf/redir.conf
</VirtualHost>
# all requests of "http://gentoo.org/*" will be redirected to
# "http://www.gentoo.org/*". this results in a single url for all of our pages.
<VirtualHost *>
ServerAdmin www@gentoo.org
ServerName gentoo.org
CustomLog /etc/apache/logs/www.gentoo.org-access_log.httpd gzip
ErrorLog /etc/apache/logs/www.gentoo.org-error_log.httpd
Redirect permanent / http://www.gentoo.org/
</VirtualHost>
# ppc
<VirtualHost *>
ServerAdmin www@gentoo.org
ServerName ppc.gentoo.org
CustomLog /etc/apache/logs/www.gentoo.org-access_log.httpd gzip
ErrorLog /etc/apache/logs/www.gentoo.org-error_log.httpd
RedirectMatch permanent /(.*)$ http://www.gentoo.org/proj/en/ppc/$1
</VirtualHost>
# infrastructure
<VirtualHost *>
ServerAdmin www@gentoo.org
ServerName infrastructure.gentoo.org
CustomLog /etc/apache/logs/www.gentoo.org-access_log.httpd gzip
ErrorLog /etc/apache/logs/www.gentoo.org-error_log.httpd
RedirectMatch permanent /(.*)$ http://www.gentoo.org/proj/en/infrastructure/$1
</VirtualHost>
# hardened
<VirtualHost *>
ServerAdmin www@gentoo.org
ServerName hardened.gentoo.org
CustomLog /etc/apache/logs/www.gentoo.org-access_log.httpd gzip
ErrorLog /etc/apache/logs/www.gentoo.org-error_log.httpd
RedirectMatch permanent /(.*)$ http://www.gentoo.org/proj/en/hardened/$1
</VirtualHost>
# glep
<VirtualHost *>
ServerAdmin www@gentoo.org
ServerName glep.gentoo.org
CustomLog /etc/apache/logs/www.gentoo.org-access_log.httpd gzip
ErrorLog /etc/apache/logs/www.gentoo.org-error_log.httpd
RedirectMatch permanent /(.*)$ http://www.gentoo.org/proj/en/glep/$1
</VirtualHost>
# cluster
<VirtualHost *>
ServerAdmin www@gentoo.org
ServerName cluster.gentoo.org
CustomLog /etc/apache/logs/www.gentoo.org-access_log.httpd gzip
ErrorLog /etc/apache/logs/www.gentoo.org-error_log.httpd
RedirectMatch permanent /(.*)$ http://www.gentoo.org/proj/en/cluster/$1
</VirtualHost>
|