Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid command 'DOSWhitelistUri' #33

Open
netllama opened this issue Jan 16, 2025 · 2 comments
Open

Invalid command 'DOSWhitelistUri' #33

netllama opened this issue Jan 16, 2025 · 2 comments

Comments

@netllama
Copy link

I'm running version 2.3 on a Fedora41(Linux) server with apache-2.4.62. I wanted to use the DOSWhitelistUri option in mod_evasive.conf, but apache refuses to start as soon as I add that option:

AH00526: Syntax error on line 69 of /etc/httpd/conf.d/mod_evasive.conf:
Invalid command 'DOSWhitelistUri', perhaps misspelled or defined by a module not included in the server configuration

Line 69 of my /etc/httpd/conf.d/mod_evasive.conf: is simply:

DOSWhitelistUri                /test0
@jvdmr
Copy link
Owner

jvdmr commented Jan 23, 2025

It is always a good idea to surround mod config with IfModule tags:

<IfModule mod_evasive.c>
    DOSWhitelistUri                /test0
</IfModule>

If Apache still won't start with this config, something is definitely wrong with the module.

If it does then start, but nothing seems to have changed, then the module isn't being loaded. You should have this line somewhere in your Apache config:

LoadModule evasive_module modules/mod_evasive.so

Let me know if that helps!

@netllama
Copy link
Author

On my Fedora system, the module is /usr/lib64/httpd/modules/mod_evasive24.so so I have

LoadModule evasive_module modules/mod_evasive24.so
<IfModule mod_evasive24.c>
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants