gzip html and xml output
[irspy-moved-to-github.git] / web / conf / apache2.0 / irspy.conf
index 67161cc..efa8d5b 100644 (file)
       Order deny,allow
       Allow from all
     </Proxy>
-    ProxyPass         /toroid/ http://localhost:12367/
-    ProxyPassReverse  /toroid/ http://localhost:12367/
+
+    
+    # map /toroid to CGI script irspy-toroid.cgi
+    ScriptAlias /toroid/records        /home/indexdata/irspy-toroid/irspy-toroid.cgi 
+
+    # legacy ruby daemon
+    #ProxyPass         /toroid/ http://localhost:12367/
+    #ProxyPassReverse  /toroid/ http://localhost:12367/
+
+    # compress output
+    <Location />
+      AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml
+      SetOutputFilter DEFLATE
+    </Location>
+
 </VirtualHost>