mirror of
https://github.com/alerta/alerta.git
synced 2025-01-24 17:29:39 +00:00
24 lines
693 B
Text
24 lines
693 B
Text
<VirtualHost *:80>
|
|
|
|
ServerName monitoring.gudev.gnl
|
|
ServerAlias monitoring.guprod.gnl
|
|
ServerAdmin webmon@guardian.co.uk
|
|
|
|
RewriteEngine On
|
|
RewriteRule ^/alerta/api/v1/alerts/alert.json$ /alerta/api/v1/alert-api.py?%{QUERY_STRING} [L]
|
|
RewriteRule ^/alerta/api/v1/alerts /alerta/api/v1/alert-dbapi.py [L]
|
|
RewriteRule ^/alerta/api/v1/resources /alerta/api/v1/alert-dbapi.py [L]
|
|
RewriteRule ^/alerta/management /alerta/api/v1/alert-mgmt.py [L]
|
|
|
|
DocumentRoot /var/www/html
|
|
ErrorLog logs/alerta-error.log
|
|
CustomLog logs/alerta-access.log common
|
|
|
|
<Directory "/var/www/html/alerta/api">
|
|
Options FollowSymLinks
|
|
Options +ExecCGI
|
|
AddHandler cgi-script .py
|
|
</Directory>
|
|
|
|
</VirtualHost>
|
|
|