Thanks for your help.
I do understand your point about it being risky but the NethServer is on a separate vlan connected only to the firewall so I feel that would be fairly safe. LAN and WAN hosts can only access my NetServer through the firewall (port 80 is blocked for them) and then only a non-standard port. Only the firewall will have access to port 80 and HAProxy allows me to easily deploy some extra filters. One of the things I have noticed is that Fail2ban does not ban repeated bad ActiveSync attempts.
Looking at the code snippet, this looks like the original template. If I comment out (or delete) the lines:
$OUT.= “RewriteCond %{HTTPS} !=on\n”;
$OUT.= “RewriteRule ^/SOGo(/.*)?$ https://%{HTTP_HOST}/SOGo$1 [R=301,L]\n”;
and regenerate the files with: signal-event nethserver-sogo-update
will that achieve what I am looking to do?
I just thought that having a new virtualhost would allow me to keep the existing default config and create a new one to play around with. In the first instance, just having ActiveSync on port 80 would be enough. I realise it will need to be SSLified to be used with client software but I thought that would be handled with HAProxy.