[[TracNav(doc/RPKI/TOC)]] [[PageOutline]] = Apache Configuration = This page documents how to configure Apache to server the web portal application. During the software install process, `/usr/local/etc/rpki/apache.conf` is created, which needs to be included from the apache configuration inside of a `VirtualHost` section. Note that the web portal application '''requires TLS''' to be enabled for the `VirtualHost` it is configured in, otherwise it will fail to operate. == Requirements == * Apache 2.2 or later * mod_ssl * mod_wsgi 3 or later == Debian & Ubuntu == First, you need to install `apache` and enable SSL. Run the following commands in a shell as '''root''': {{{#!sh apt-get install apache2 libapache2-mod-wsgi a2enmod ssl a2ensite default-ssl }}} Edit `/etc/apache2/sites-enabled/default-ssl` and place the following line inside the `` section: {{{ Include /usr/local/etc/rpki/apache.conf }}} Now restart `apache`: {{{#!sh service apache2 restart }}} == FreeBSD == Now configure apache, using `/usr/local/etc/rpki/apache.conf`, e.g. {{{ #!sh $ cp apache.conf /usr/local/etc/apache22/Includes/rpki.conf }}} Restart apache {{{ #!sh $ apachectl restart }}} == Running the web portal as a different user (optional) == By default, the web portal is run in embedded mode in mod_wsgi, which means it runs inside the apache process. However, you can make the web portal run in daemon mode as a different user using mod_wsgi. {{{ #!sh $ ./configure --enable-wsgi-daemon-mode[=user[:group]] }}} Where `user` is the optional user to run the web portal as, and `group` is the optional group to run the web portal as. If `user` is not specified, it will run in a separate process but the same user as apache is configured to run. Note that when run in daemon mode, a unix domain socket will be created in the same directory as the apache log files. If the user you have specified to run the web portal as does not have permission to read a file in that directory, the web interface will return a **500 Internal Server Error** and you will see a **permission denied** error in your apache logs. The solution to this is to use the `WSGISocketPrefix` apache configuration directive to specify an alternative location, such as: {{{ WSGISocketPrefix /var/run/wsgi }}} Note that this directive **must not** be placed inside of the `VirtualHost` section. It **must** be located at the global scope. see http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGISocketPrefix for more information. == Verify the Web Portal is Working == Navigate to https://YOURHOST/rpki/ and you should see the login page for the web portal. Enter the superuser and password in login form (see [[wiki:doc/RPKI/CA/UI/GUI/UserModel]] if you haven't yet created a superuser). If you've only done the above bootstrap, there will only be a single handle to manage, so the GUI will automatically bring you to the dashboard for that handle.:26:01 +0000 committer Rob Austein <sra@hactrn.net> 2007-11-12 20:26:01 +0000 More notes on CRL and revocation' href='/sra/rpki.net/commit/scripts/README?h=zone-cleanup&id=8fff9fbcbc986dcaa706831592f26f84e40d8a00'>8fff9fbc
8f0f4498
ba431c95
8f0f4498
ba431c95
8f0f4498
6644f219

ca0979f7
56d0d598
8f0f4498
61133f08

02607d22

d2403396



4460000e
d2403396

8ba1be0f










4460000e
8dfec452
4460000e
8dfec452
4460000e
8dfec452
4460000e
4460000e
d5d0045a










4460000e
8dfec452
4460000e
d5d0045a
4460000e
e8085612
d5d0045a

4460000e
d2403396


4460000e
8dfec452
4460000e
8dfec452
4460000e
9256db5c
4460000e
d5d0045a
d2403396





b924a6ca
8dfec452
02607d22
8dfec452
e01968e5
8dfec452
02607d22
02607d22
d2403396



b924a6ca
8dfec452
02607d22
8dfec452
e01968e5
8dfec452
e01968e5
8dfec452
b924a6ca
e01968e5
d2403396


02607d22
8dfec452
e01968e5
8dfec452
e01968e5
8dfec452
b924a6ca
02607d22
d2403396



02607d22
8dfec452
e01968e5
8dfec452
68a4491d
8dfec452
e01968e5
d2403396

02607d22
8dfec452
68a4491d
02607d22
d2403396





68a4491d
8dfec452
e01968e5
8dfec452
02607d22
8dfec452
68a4491d
d2403396

68a4491d
8dfec452
68a4491d
8dfec452
02607d22
02607d22
d2403396

02607d22
8dfec452
02607d22
8dfec452
68a4491d
8dfec452
e01968e5
8dfec452
e01968e5
e01968e5
d2403396


d400cdd4
d2403396






02607d22
8dfec452
02607d22
8dfec452
e01968e5
8dfec452
e01968e5
8dfec452
02607d22
e01968e5
d2403396


68a4491d
8dfec452
02607d22
8dfec452
02607d22
8dfec452
02607d22
68a4491d
d400cdd4
68a4491d
8dfec452
8469427a
8469427a
d2403396


8469427a
8dfec452
8469427a
8dfec452
11f91fe5
8dfec452
b924a6ca
11f91fe5
d2403396




8dfec452
31845c41
8dfec452
31845c41
8dfec452
31845c41
8dfec452
cd5e1ccc
cd5e1ccc
d2403396





cd5e1ccc
8dfec452
cd5e1ccc
8dfec452
cd5e1ccc
d400cdd4

cd5e1ccc
cd5e1ccc
d400cdd4
8dfec452

cd5e1ccc
8dfec452
018f9aea
8dfec452
018f9aea
8dfec452
018f9aea
4989b06a
d2403396

4989b06a
8dfec452
4989b06a
d2403396

4989b06a
8dfec452


d400cdd4
8dfec452







d400cdd4
d2403396





8dfec452

d2403396



8dfec452


d2403396


8dfec452



d400cdd4
8dfec452






02607d22
02607d22
d2403396




02607d22
8dfec452
02607d22
8dfec452
02607d22
8dfec452
02607d22
02607d22
d2403396




02607d22
8dfec452
02607d22
8dfec452
e68a3f29
d758100f


02607d22

9dc1e388
16ab264e
9dc1e388






7bb49caf
9dc1e388

6cf3c5cf
9dc1e388

6cf3c5cf
9dc1e388



6cf3c5cf
9dc1e388

03d35fca
9dc1e388

cf98d466
9dc1e388


3b26727b



9dc1e388


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
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367