On Sun, Oct 24, 2010 at 11:09, Alexander Farber <alexander.far...@gmail.com> wrote: > So for content handlers the convention is > to use "SetHandler XXX" in httpd.conf and > then at the runtime they check for that string with > > if (!r->handler || (strcmp(r->handler, "XXX") != 0)) { > return DECLINED; > } > > But for protocol handlers there is no such convention. > You have to introduce some keyword for httpd.conf > and check for it. Or in my case you could just: > > if (conn->base_server->port != 843) > return DECLINED; > > at the beginning? (seems to work)
Yes, that is correct. A config directive is the cleaner solution, though.