How to ignore a resource

Community forum to discuss cxs.
If you believe that there is a problem with your cxs installation and want support then, as a paid product, you should use the helpdesk after having consulted the documentation.
Post Reply
tonerudez
Junior Member
Posts: 2
Joined: 24 Feb 2023, 11:12

How to ignore a resource

Post by tonerudez »

I would like to ignore all error_log under /home/*/public_html/ panoramacharter.ltd

192.168.1.1
Last edited by tonerudez on 28 Feb 2023, 11:18, edited 1 time in total.
Sarah
Moderator
Posts: 921
Joined: 09 Dec 2006, 22:49

Re: How to ignore a resource

Post by Sarah »

You'd need to create a regular expression to match the files you want to ignore, and use the pfile: keyword in cxs.ignore.

For example, if you want to ignore all files with a name containing "error.log" in any user's public_html directory (or subdirectories of that directory), you could try something like this:

Code: Select all

pfile:\/home\/.*\/public_html\/.*error\.log$
I can't guarantee that this will work, it is just an example. You will need to test it and revise it if it doesn't work. Use a tool such as regex101.com to build or refine your regular expression.

Regards,
Sarah
Post Reply