Forum Moderators: coopster & phranque

Message Too Old, No Replies

cgi 404 error logger

         

dougwilson

1:03 am on Mar 15, 2018 (gmt 0)

10+ Year Member Top Contributors Of The Month



I have added some new rules to htaccess, which are likely causing this. But I want them there.

The issue is, every time I hit "view" on this page...

http://www.example.com/cgi-bin/404.cgi


I get this...
2018-03-14, 12:52:12 97.120.97.178 Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36 OPR/51.0.2830.55 /wp/feed/ 
2018-03-14, 12:52:11 97.120.97.178 Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36 OPR/51.0.2830.55 /wpsite/feed/atom/
2018-03-14, 12:52:10 97.120.97.178 Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36 OPR/51.0.2830.55 /watching-the-world/feed/
2018-03-14, 12:52:10 97.120.97.178 Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36 OPR/51.0.2830.55 /wpsite/feed/
2018-03-14, 12:46:11 193.239.172.3 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.468 Safari/537.36 /watching-the-world/feed/

which is my IP and UA. The rules that, I think. cause the issue are...
RedirectMatch 404 /(aa-steps-and-traditions)
RedirectMatch 412 /(wpsite|wp)/
RedirectMatch 412 /(wpsite)

[edited by: phranque at 3:54 am (utc) on Mar 15, 2018]
[edit reason] exemplified domain [/edit]

phranque

3:55 am on Mar 15, 2018 (gmt 0)

phranque

4:08 am on Mar 15, 2018 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



The issue is, every time I hit "view" on this page...
[...]
I get this...

i assume you mean you get this in your 404 logger file?

have you looked for clues correlating to this request/response in your server access and error logs?

why are you using a 412 status code?
that second "RedirectMatch 412" directive is redundant in any case - it's already covered by the previous rule.
does your configuration specify the 404 logger as part of the custom error page for 412 responses?

dougwilson

3:08 pm on Mar 15, 2018 (gmt 0)

10+ Year Member Top Contributors Of The Month



- i assume you mean you get this in your 404 logger file?
correct

- have you looked for clues correlating to this request/response in your server access and error logs?
yes

- why are you using a 412 status code?
so I could tell what rules were being executed

- that second "RedirectMatch 412" directive is redundant in any case - it's already covered by the previous rule.
a request for /wp is allowed with only /wp/

- does your configuration specify the 404 logger as part of the custom error page for 412 responses?
yes, because I wanted all the requests logged to the same page. I could have used badrequest.cgi, or anything instead of notfound.cgi, but I'm only interested in those, /this/feed/ and /that/feed/, items. Specifically, why the feed part...

phranque

3:40 pm on Mar 15, 2018 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Specifically, why the feed part...

what is the referrer for those requests?

dougwilson

3:55 pm on Mar 15, 2018 (gmt 0)

10+ Year Member Top Contributors Of The Month



not shown. just the info above. without you, or anyone, being able to play with the actual page, I doubt it can be resolved. I'll just have to remove the rules for now. thanks

phranque

4:49 pm on Mar 15, 2018 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



That info is in your server log files if you match the timestamps.

dougwilson

5:06 pm on Mar 20, 2018 (gmt 0)

10+ Year Member Top Contributors Of The Month



Yes. Sorry about the delay. The referer was always the issue. I guess the referer would be a .cgi script, triggered by me (browser), included on this error page.

This latest brain scrunch finally got me to do something I've needed to do for a long, long time (about a year after I got the domain and started learning how to make a website), which is get a better domain name and move everything I liked on to it.

That and delete my google account