add serveralias irspy02.indexdata.com
[irspy-moved-to-github.git] / web / conf / apache2.0 / cartney-dev.conf
index 7f3ae98..f20f0be 100644 (file)
@@ -5,6 +5,13 @@
 # on running HTML::Mason-based sites under the apache2 port for Macs.
 
 PerlSwitches -I/usr/local/src/git/irspy/lib
+
+# Empirally, it seems that including this next line prevents the bug
+# in which some but not all requests result in the error:
+#      Undefined subroutine &ZOOM::IRSpy::connect_to_registry
+# (This ought not to make any difference, as the Apache2::Request
+# module should of course get loaded from within IRSpy anyway, but you
+# never know with Apache.)
 PerlModule Apache2::Request
 
 <VirtualHost *:80>
@@ -35,5 +42,13 @@ PerlModule Apache2::Request
        AuthUserFile /usr/local/src/git/irspy/web/conf/htpasswd
        Require user admin
     </Location>
+
+    ProxyRequests off
+    <Proxy *>
+      Order deny,allow
+      Allow from all
+    </Proxy>
+    ProxyPass         /toroid/ http://localhost:12367/
+    ProxyPassReverse  /toroid/ http://localhost:12367/
 </VirtualHost>