-
Notifications
You must be signed in to change notification settings - Fork 63
nginx: [emerg] "BasicRule" directive is not allowed here in whitelist rules #40
Comments
I changed the configuration to the following:
but i still get the error
We see this as a bug @wargio you can check. problem software did not read nginx configuration |
Rules are not supported within an if block. if you have multiple hosts, etc.. i suggest to have a different http configuration |
@wargio How do configure it? I have to include files one by one in each vhost? this is a really bad idea. |
there is a PR for that actually. |
@wargio i have some questions.
|
that PR actually allows to setup naxsi at config and server level, this means that you need to include the naxsi configuration only once. i can't answer to the when and why because i do not know the reasons. |
what does this mean? actually I don't understand how configuring it will be, because there is not description there is no documentation about the configuration?
means now we just need to include the file in nginx.conf? but i want to manage vhost in a simpler way through if block or $host in nginx, |
i am trying to configure the following but am getting an error how can i fix it
Vhost myconfig:
block.rules file:
nginx check:
if I configure the block file like this, it works again
block.rules file:
nginx check:
how can i use if check host with nginx here?
The text was updated successfully, but these errors were encountered: