1staticintdefault_handler(request_rec *r)2{3 conn_rec *c = r->connection;4 apr_bucket_brigade *bb;5 apr_bucket *e;67// 中略89if(r->method_number == M_GET || r->method_number == M_POST){10if(r->finfo.filetype == APR_NOFILE){11ap_log_rerror(APLOG_MARK, APLOG_INFO,0, r,APLOGNO(00128)12"File does not exist: %s",13apr_pstrcat(r->pool, r->filename, r->path_info,NULL));14return HTTP_NOT_FOUND;15}1617// 中略1819}20else{/* unusual method (not GET or POST) */21if(r->method_number == M_INVALID){22/* See if this looks like an undecrypted SSL handshake attempt.
23 * It's safe to look a couple bytes into the_request if it exists, as it's
24 * always allocated at least MIN_LINE_ALLOC (80) bytes.
25 */26if(r->the_request
27&& r->the_request[0]==0x1628&&(r->the_request[1]==0x2|| r->the_request[1]==0x3)){29ap_log_rerror(APLOG_MARK, APLOG_ERR,0, r,APLOGNO(00134)30"Invalid method in request %s - possible attempt to establish SSL connection on non-SSL port", r->the_request);31}else{32ap_log_rerror(APLOG_MARK, APLOG_ERR,0, r,APLOGNO(00135)33"Invalid method in request %s", r->the_request);34}35return HTTP_NOT_IMPLEMENTED;36}3738if(r->method_number == M_OPTIONS){39returnap_send_http_options(r);40}41return HTTP_METHOD_NOT_ALLOWED;42}43}
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/07/21 00:53