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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
|
#
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
<VirtualHost *:80>
ServerAdmin jausoft@jausoft.com
ServerName jogamp.org
ServerAlias www.jogamp.org
ServerPath /jogamp.org/
RewriteEngine On
ErrorLog ${APACHE_LOG_DIR}/jogamp.org-error.log
CustomLog ${APACHE_LOG_DIR}/jogamp.org-access.log combined
DocumentRoot /srv/www/jogamp.org
# don't loose time with IP address lookups
HostnameLookups Off
# needed for named virtual hosts
UseCanonicalName Off
# configures the footer on server-generated documents
ServerSignature On
<Directory "/srv/www/jogamp.org">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
RewriteCond %{HTTP_HOST} ^www.jogamp\.org$ [NC]
RewriteRule ^/(.*)$ http://jogamp.org/$1 [R=301,L,NE]
#RewriteCond %{HTTP_HOST} ^(.*)\.jogamp\.org$ [NC]
#RewriteRule ^/(.*)$ http://jogamp.org/%1/$1 [R=301,L,NE]
RewriteCond %{REQUEST_URI} ^/wiki/index.php$
RewriteCond %{QUERY_STRING} ^title=Special:UserLogin
RewriteCond %{REQUEST_METHOD} ^GET$
RewriteRule ^(.*)$ https://%{SERVER_NAME}/$1 [R=301,L,NE]
#
# Due to security concerns, session hijacking .. etc .. the whole
# bugzilla stream will go over https
#
RewriteCond %{REQUEST_URI} ^/bugzilla
RewriteRule ^/bugzilla/(.*)$ https://%{SERVER_NAME}/bugzilla/$1 [R=301,L,NE]
SetEnv GIT_PROJECT_ROOT /srv/scm
SetEnv GIT_HTTP_EXPORT_ALL
ScriptAlias /srv/scm/ /usr/lib/git-core/git-http-backend/
<Directory "/srv/www/jogamp.org/git">
DirectoryIndex gitweb.cgi
Allow from all
AllowOverride all
Order allow,deny
Options ExecCGI
<Files gitweb.cgi>
SetHandler cgi-script
</Files>
SetEnv GITWEB_CONFIG /srv/scm/gitweb.conf
</Directory>
Alias /icons/ "/srv/www/jogamp.org/icons/"
<Directory "/srv/www/jogamp.org/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
#
# Due to security concerns, session hijacking .. etc .. the whole
# hudson and bugzilla stream will go over https
#
RewriteCond %{REQUEST_URI} ^/chuck
RewriteRule ^/chuck/(.*)$ https://%{SERVER_NAME}/chuck/$1 [R=301,L,NE]
#RewriteCond %{REQUEST_URI} ^/chuck
#RewriteRule ^/chuck/login(.*)$ https://%{SERVER_NAME}/chuck/login$1 [R=301,L,NE]
#
#RewriteCond %{REQUEST_URI} ^/chuck
#RewriteCond %{HTTP_COOKIE} JSESSIONID=(.*) [NC,OR]
#RewriteCond %{HTTP_COOKIE} ACEGI_SECURITY_HASHED_REMEMBER_ME_COOKIE [NC]
#RewriteRule ^/chuck/(.*)$ https://%{SERVER_NAME}/chuck/$1 [R=301,L,NE]
#
# Cookies:
# wikidb_mw_LoggedOut /
# wikidb_mw__session /
# wikidb_mw_Token /
# wikidb_mw_UserID /
# wikidb_mw_UserName /
#
# Bugzilla_login /bugzilla
# Bugzilla_logincookie /bugzilla
# DEFAULTFORMAT /bugzilla
#
# ACEGI_SECURITY_HASHED_REMEMBER_ME_COOKIE /chuck
# JSESSIONID /chuck
#
#
# http://wiki.hudson-ci.org/display/HUDSON/Running+Hudson+behind+Apache
#
#ProxyRequests Off
#ProxyPreserveHost On
# Local reverse proxy authorization override
# Most unix distribution deny proxy by default (ie /etc/apache2/mods-enabled/proxy.conf in Ubuntu)
#<Proxy http://localhost:8089/chuck*>
# Order deny,allow
# Allow from all
#</Proxy>
#ProxyPass /chuck http://localhost:8080/chuck
#ProxyPassReverse /chuck http://localhost:8080/chuck
</VirtualHost>
<VirtualHost *:80>
ServerName blog.jogamp.org
ServerPath /jogamp.org/
ErrorLog ${APACHE_LOG_DIR}/jogamp.org-error.log
CustomLog ${APACHE_LOG_DIR}/jogamp.org-access.log combined
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(.*)\.jogamp\.org$ [NC]
RewriteRule ^/(.*)$ http://jogamp.org/%1/$1 [R=301,L,NE]
</VirtualHost>
<VirtualHost *:80>
ServerName bugzilla.jogamp.org
ServerPath /jogamp.org/
ErrorLog ${APACHE_LOG_DIR}/jogamp.org-error.log
CustomLog ${APACHE_LOG_DIR}/jogamp.org-access.log combined
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(.*)\.jogamp\.org$ [NC]
RewriteRule ^/(.*)$ https://jogamp.org/%1/$1 [R=301,L,NE]
</VirtualHost>
<VirtualHost *:80>
ServerName wiki.jogamp.org
ServerPath /jogamp.org/
ErrorLog ${APACHE_LOG_DIR}/jogamp.org-error.log
CustomLog ${APACHE_LOG_DIR}/jogamp.org-access.log combined
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(.*)\.jogamp\.org$ [NC]
RewriteRule ^/(.*)$ http://jogamp.org/%1/$1 [R=301,L,NE]
</VirtualHost>
<VirtualHost *:80>
ServerName scm.jogamp.org
ServerPath /jogamp.org/
ErrorLog ${APACHE_LOG_DIR}/jogamp.org-error.log
CustomLog ${APACHE_LOG_DIR}/jogamp.org-access.log combined
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(.*)\.jogamp\.org$ [NC]
RewriteRule ^/(.*)$ http://jogamp.org/git/$1 [R=301,L,NE]
</VirtualHost>
<VirtualHost *:80>
ServerName jogl.jogamp.org
ServerPath /jogamp.org/
ErrorLog ${APACHE_LOG_DIR}/jogamp.org-error.log
CustomLog ${APACHE_LOG_DIR}/jogamp.org-access.log combined
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(.*)\.jogamp\.org$ [NC]
RewriteRule ^/(.*)$ http://jogamp.org/%1/www/$1 [R=301,L,NE]
</VirtualHost>
<VirtualHost *:80>
ServerName jocl.jogamp.org
ServerPath /jogamp.org/
ErrorLog ${APACHE_LOG_DIR}/jogamp.org-error.log
CustomLog ${APACHE_LOG_DIR}/jogamp.org-access.log combined
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(.*)\.jogamp\.org$ [NC]
RewriteRule ^/(.*)$ http://jogamp.org/%1/www/$1 [R=301,L,NE]
</VirtualHost>
<VirtualHost *:80>
ServerName joal.jogamp.org
ServerPath /jogamp.org/
ErrorLog ${APACHE_LOG_DIR}/jogamp.org-error.log
CustomLog ${APACHE_LOG_DIR}/jogamp.org-access.log combined
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(.*)\.jogamp\.org$ [NC]
RewriteRule ^/(.*)$ http://jogamp.org/%1/www/$1 [R=301,L,NE]
</VirtualHost>
<VirtualHost *:80>
ServerName demos.jogamp.org
ServerPath /jogamp.org/
ErrorLog ${APACHE_LOG_DIR}/jogamp.org-error.log
CustomLog ${APACHE_LOG_DIR}/jogamp.org-access.log combined
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(.*)\.jogamp\.org$ [NC]
RewriteRule ^/(.*)$ http://jogamp.org/%1/$1 [R=301,L,NE]
</VirtualHost>
<VirtualHost *:80>
ServerName chuck.jogamp.org
ServerPath /jogamp.org/
ErrorLog ${APACHE_LOG_DIR}/jogamp.org-error.log
CustomLog ${APACHE_LOG_DIR}/jogamp.org-access.log combined
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(.*)\.jogamp\.org$ [NC]
RewriteRule ^/(.*)$ https://jogamp.org/%1/$1 [R=301,L,NE]
</VirtualHost>
<VirtualHost *:80>
ServerName jogamp.com
ServerAlias *.jogamp.com
ServerPath /jogamp.org/
ErrorLog ${APACHE_LOG_DIR}/jogamp.com-error.log
CustomLog ${APACHE_LOG_DIR}/jogamp.com-access.log combined
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.jogamp\.com$ [NC]
RewriteRule ^/(.*)$ http://jogamp.org/$1 [R=301,L,NE]
RewriteCond %{HTTP_HOST} ^(.*)\.jogamp\.com$ [NC]
RewriteRule ^/(.*)$ http://jogamp.org/%1/$1 [R=301,L,NE]
RewriteCond %{HTTP_HOST} ^jogamp\.com$ [NC]
RewriteRule ^/(.*)$ http://jogamp.org/$1 [R=301,L,NE]
</VirtualHost>
#
# Directives to allow use of AWStats as a CGI
#
#Alias /awstatsclasses "/usr/local/awstats/wwwroot/classes/"
#Alias /awstatscss "/usr/local/awstats/wwwroot/css/"
#Alias /awstatsicons "/usr/local/awstats/wwwroot/icon/"
#ScriptAlias /awstats/ "/usr/local/awstats/wwwroot/cgi-bin/"
#
# This is to permit URL access to scripts/files in AWStats directory.
#
<Directory "/usr/local/awstats/wwwroot">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
|