micro_xii, I think you're asking if this is the "right" way to kill the web server, yes?
Usually the web server will be started and stopped using init scripts. While kill will probably work, you might be better off using the init scripts (if they are how it's done on your system). The name of the init script will vary from distro to distro, here's a few alternatives:
Those are variations I've seen, but there may be many more.