Unify command to set web server.

Unify the code sample.