Unify command to set web server.

Unify the code sample.

--rebased-from #464