… | |
… | |
823 | } |
823 | } |
824 | |
824 | |
825 | void |
825 | void |
826 | httpd_send_err_blocked( httpd_conn* hc ) |
826 | httpd_send_err_blocked( httpd_conn* hc ) |
827 | { |
827 | { |
|
|
828 | char *protocol = hc->protocol; |
|
|
829 | |
|
|
830 | hc->protocol = "HTTP/1.0"; |
828 | #ifdef ERR_DIR |
831 | #ifdef ERR_DIR |
829 | |
832 | |
830 | char filename[1000]; |
833 | char filename[1000]; |
831 | |
834 | |
832 | /* Try virtual host error page. */ |
835 | /* Try virtual host error page. */ |
… | |
… | |
850 | #else /* ERR_DIR */ |
853 | #else /* ERR_DIR */ |
851 | |
854 | |
852 | send_response( hc, 403, err403title, "", err403form, "" ); |
855 | send_response( hc, 403, err403title, "", err403form, "" ); |
853 | |
856 | |
854 | #endif /* ERR_DIR */ |
857 | #endif /* ERR_DIR */ |
|
|
858 | hc->protocol = protocol; |
855 | } |
859 | } |
856 | |
860 | |
857 | #ifdef ERR_DIR |
861 | #ifdef ERR_DIR |
858 | static int |
862 | static int |
859 | send_err_file( httpd_conn* hc, int status, char* title, char* extraheads, char* filename ) |
863 | send_err_file( httpd_conn* hc, int status, char* title, char* extraheads, char* filename ) |
… | |
… | |
3678 | char bytes[40]; |
3682 | char bytes[40]; |
3679 | |
3683 | |
3680 | if ( hc->hs->no_log ) |
3684 | if ( hc->hs->no_log ) |
3681 | return; |
3685 | return; |
3682 | |
3686 | |
|
|
3687 | /* don't log UNKNOWN protocol requests (blocks etc..) */ |
|
|
3688 | if ( !strcmp (hc->protocol, "UNKNOWN") ) |
|
|
3689 | return; |
|
|
3690 | |
3683 | /* This is straight CERN Combined Log Format - the only tweak |
3691 | /* This is straight CERN Combined Log Format - the only tweak |
3684 | ** being that if we're using syslog() we leave out the date, because |
3692 | ** being that if we're using syslog() we leave out the date, because |
3685 | ** syslogd puts it in. The included syslogtocern script turns the |
3693 | ** syslogd puts it in. The included syslogtocern script turns the |
3686 | ** results into true CERN format. |
3694 | ** results into true CERN format. |
3687 | */ |
3695 | */ |