forked from icpc-live/autoanalyst
-
Notifications
You must be signed in to change notification settings - Fork 0
/
apache.conf
26 lines (21 loc) · 801 Bytes
/
apache.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
# Apache configuration snippet for icat and Katalyzer.
# Assumes documentroot is /var/www/html/ and there a symlink
# points to icat's www/ directory.
#
# Put in /etc/apache2/conf-available/ as icat.conf and run:
# # a2enmod proxy_http rewrite
# # a2enconf icat
# # service apache2 reload
<Directory /var/www/html/icat>
Require all granted
# Enable the following lines and disable the one above for access restriction.
# AuthType Basic
# AuthName "ICPC autoanalyst pages"
# AuthUserFile /home/analyst/.htpasswd
# Require valid-user
</Directory>
ProxyPassMatch ^/icat/api/(EventFeed|scoreboard|teams)$ http://localhost:8099/$1
<Location "/icat/api/">
RewriteEngine On
RewriteRule icat/api/(CodeActivity|EditActivity|LastEditActivity|LastEditedNotSolvedProblem)$ /icat/api/$1.php
</Location>