Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm running AWStats on a Rails site with nginx and I have pages that are accessed like this

http://mysite.com/order/receipt/[receipt_tag]

I'd like for AWStats to show those as x hits for page /order/receipt/* instead of 1 hit for [tag x], and 1 for [tag y] and so on. The closest directive I've found is URLWithQueryWithoutFollowingParameters, but since I'm using params as path components, I don't think that applies.

Same issue but with a (probably) more common scenario is combining ID's into one page. So /admin/orders/[order_id] should be reported as x hits for /admin/orders/* instead of /admin/orders/1 and /admin/orders/2, etc.

Is that possible?

share|improve this question

1 Answer 1

A terrible solution that I'm using is to add all digits to awstat's URLQuerySeparators conf value, like

URLQuerySeparators="?;0123456789"

If you have numbers in the first part of your URL (like /admin2/orders/1) it won't work very well. Also, if you want to then have it look at query string values, I'm not sure how it'll behave.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.