LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so
LoadModule proxy_ajp_module /usr/lib/apache2/modules/mod_proxy_ajp.so
LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_http.so

ServerName localhost

<VirtualHost *:8081>

     Alias /sharepointconnector "/home/visiblethread/sharepoint"
     <Location /sharepoint>
        SetHandler mono
      </Location>


</VirtualHost>
<VirtualHost *:80>
	RewriteEngine On
	RewriteCond %{HTTPS} off
	RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</VirtualHost>

<VirtualHost *:443>


<IfModule ssl_module>
SSLEngine on

SSLCertificateFile      /home/visiblethread/cert/server.crt
SSLCertificateKeyFile   /home/visiblethread/cert/server.key
SSLProtocol             -ALL +SSLv3 +TLSv1
SSLCipherSuite          ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM

SetEnvIf User-Agent ".*MSIE.*" \
         nokeepalive ssl-unclean-shutdown \
         downgrade-1.0 force-response-1.0

</IfModule>

  Alias /sharepointconnector "/home/visiblethread/sharepoint"
     <Location /sharepoint>
        SetHandler mono
      </Location>


ProxyRequests Off
ProxyPreserveHost On

ProxyPass /svn !
ProxyPass /server-status !
ProxyPass /server-info !
ProxyPass /sharepointconnector !
ProxyPass /VisibleThreadService http://localhost:8080/axis2/services/VisibleThreadService
ProxyPassReverse /VisibleThreadService http://localhost:8080/axis2/services/VisibleThreadService

ProxyPass /dashboard/ http://localhost:8080/dashboard/
ProxyPassReverse /dashboard/ http://localhost:8080/dashboard/
ProxyPass / http://localhost:8080/dashboard/
ProxyPassReverse / http://localhost:8080/dashboard/

ProxyPassReverseCookiePath /dashboard /

</VirtualHost>

