[gitlab] refactore web server detection/support