ServerName swarmops-frontend ServerAdmin swarmops-frontend@swarmops.com DocumentRoot /usr/share/swarmops/frontend/ # With mod_proxy enabled, kill the ability to make unsolicited proxy requests ProxyRequests Off # Point out application folder, explicitly specify Mono version 4 MonoApplications swarmops-frontend "/:/usr/share/swarmops/frontend/" MonoServerPath swarmops-frontend "/usr/bin/mod-mono-server4" # Uncomment the line below to enable debugging: # MonoDebug swarmops-frontend true # Uncomment the line below and enter FQDNs (one or more) for Swarmops if # running virtual hosts: # ServerAlias FQDN1 FQDN2 FQDN3 ... # Redirect websocket requests to Swarmops FrontSocket server Allow from all ProxyPass "ws://localhost:12172/" ProxyPassReverse "ws://localhost:12172/" # Trigger main handler only if Upgrade header is not [Ww]ebsocket # (because in that particular case, we're passing to socket above) Allow from all Order allow,deny SetHandler mono MonoSetServerAlias swarmops-frontend SetOutputFilter DEFLATE SetEnvIfNoCase Request_URI "\.(?:gif|jpe?g|png)$" no-gzip dont-vary AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript