No, SetHandler should be ok, because mod_echo works fine.

I've added the port number to my logs:

ap_log_error(APLOG_MARK, APLOG_NOTICE, 0, conn->base_server,
            "served socket policy to %s via %d",
             conn->remote_ip, conn->base_server->port);

And now I see in the error_log:

 [notice] served socket policy to 127.0.0.1 via 843
 [notice] served socket policy to 127.0.0.1 via 80

- depending on which port I called the "telnet localhost XXX" with.

So should I check for the port != 843 and return DECLINED?

It seems a bit awkward to me

Regards
Alex

Reply via email to