You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nginx build with connector modsecurity-nginx. Modsecurity build with lmdb support (--with-lmdb)
server /etc/nginx # ls -al
...
-rw-r--r-- 1 root root 3957 Aug 10 2017 mime.types
drwxr-xr-x 2 root root 4096 Feb 19 12:38 modsec
-rw-r--r-- 1 root root 5494 Jan 23 20:55 nginx.conf
drwxr-xr-x 2 root root 4096 Jul 9 12:54 sites-available
drwxr-xr-x 2 root root 4096 Jul 9 12:55 sites-enabled
server /etc/nginx # nginx -t
nginx: [emerg] too long parameter "..." started in /etc/nginx/sites-enabled/modsec-shared-collections:1
nginx: configuration file /etc/nginx/nginx.conf test failed
server /etc/nginx # ls -al
...
-rw-r--r-- 1 root root 3957 Aug 10 2017 mime.types
drwxr-xr-x 2 root root 4096 Feb 19 12:38 modsec
-rw-r--r-- 1 root root 1048576 Jul 9 12:56 modsec-shared-collections
-rw-r--r-- 1 root root 8192 Jul 9 12:56 modsec-shared-collections-lock
server ~/test# ls -l
total 0
server ~/test # nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
server ~/test # ls -l
total 12
-rw-r--r-- 1 root root 1048576 Jul 9 13:23 modsec-shared-collections
-rw-r--r-- 1 root root 8192 Jul 9 13:23 modsec-shared-collections-lock
This is very strange behavior. If I change directory to /etc/nginx, then run nginx -t - after that my nginx config is broken.
Ideally the lmdb file should be created in a path relative to execution binary, in that case: nginx. Not sure if we need a configuration flag for that, where the user will be able to pin point the location of the collection. That seem to be a good idea as we want to support others such us: Redis (#1139) and Memcache (#1140). Both Memcache and Redis, demands specific parameters at runtime (e.g. Server address).
Nginx build with connector modsecurity-nginx. Modsecurity build with lmdb support (
--with-lmdb
)This is very strange behavior. If I change directory to
/etc/nginx
, then runnginx -t
- after that my nginx config is broken.The text was updated successfully, but these errors were encountered: