Ignore a directory

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
tonyp86
Junior Member
Posts: 1
Joined: 05 Apr 2016, 15:02

Ignore a directory

Post by tonyp86 »

Hello,

CXS is reporting some false positives on some directory names and cached files. These are re-created every 15minutes when the cache is and I'd like to ignore all the files and directories within certain folders of every users directory. I suspect I will need a regex way of doing this, but not sure how this works with CXS as I can't find any good examples.

Many thanks
Tony
craigedmonds
Junior Member
Posts: 21
Joined: 21 Dec 2010, 09:24

Re: Ignore a directory

Post by craigedmonds »

I am getting same issue with 1 emails every few seconds literally.

How to I exclude scanning of this folder...I just need to know the SSh command for this.

/home/shantiso/public_html/wp-content/cache/supercache/
craigedmonds
Junior Member
Posts: 21
Joined: 21 Dec 2010, 09:24

Re: Ignore a directory

Post by craigedmonds »

This actually driving me apeshit.

Is the command like this?

cxs ignore dir:/home/shantiso/public_html/wp-content/cache/supercache/

The documentation associated with cxs is a bit cryptic
nexus-sy
Junior Member
Posts: 1
Joined: 08 Jun 2016, 11:25

Re: Ignore a directory

Post by nexus-sy »

Hi,

You should be able to edit

Code: Select all

/etc/cxs/cxs.ignore
Then add:-

Code: Select all

hdir:/public_html/wp-content/cache/supercache
`hdir` is relative to the users home folder.

Then restart cxs:-

Code: Select all

service cxswatch restart
Post Reply