Permalink
Browse files

* add monit to admin interface

  • Loading branch information...
1 parent 7db7699 commit 3d1d3667c56b7ea1360fe0208d91fa92c9a8a137 @dudemeister committed Apr 24, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 apache2/passenger_vhost_admin.conf.erb
@@ -35,6 +35,7 @@
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/admin
RewriteCond %{REQUEST_URI} !^/images
+ RewriteCond %{REQUEST_URI} !^/monit
RewriteRule ^(.*)$ admin$1 [P,L]
ProxyRequests Off
@@ -48,6 +49,14 @@
Allow from all
</Proxy>
+ <ProxyMatch http://127.0.0.1:2812>
+ Order deny,allow
+ Allow from all
+ </ProxyMatch>
+
+ ProxyPass /monit/ http://127.0.0.1:2812/
+ ProxyPassReverse /monit/ http://127.0.0.1:2812/
+
</VirtualHost>
<VirtualHost *:81>

0 comments on commit 3d1d366

Please sign in to comment.