-
Notifications
You must be signed in to change notification settings - Fork 0
/
agora.conf
45 lines (34 loc) · 1.12 KB
/
agora.conf
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
<VirtualHost *:80>
# Set here the IP of the server
ServerName 155.207.19.44
# Set here your email
ServerAdmin agora@olympus.ee.auth.gr
DocumentRoot /var/www/html
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
<VirtualHost *:8080>
# Set here the IP of the server
ServerName 155.207.19.44
# Set here your email
ServerAdmin agora@olympus.ee.auth.gr
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# Proxy information
ProxyPreserveHost On
ProxyPass / http://localhost:9200/ retry=0 timeout=5
ProxyPassReverse / http://localhost:9200/
# Basic Authentication Information
<LocationMatch "^/(?!_search|agora/files/_search|agora/projects/_search)">
AuthType Basic
AuthName "Restricted Files"
AuthBasicProvider file
AuthUserFile "/usr/local/apache/passwd/passwords"
Require valid-user
</LocationMatch>
</VirtualHost>