I want to enable the ngxblocker for my site. Here is my setup:
ubuntu 20.04
# wo site create example.com --wp --php74 -le --hsts --wpfc
# wo stack install --ngxblocker
# wo site update example.com --ngxblocker
after running the last command, I get the below error:
Testing Nginx configuration [OK]
Reloading Nginx [OK]
Testing Nginx configuration [OK]
Reloading Nginx [OK]
Traceback (most recent call last):
File "/usr/local/bin/wo", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.8/dist-packages/wo/cli/main.py", line 102, in main
app.run()
File "/usr/local/lib/python3.8/dist-packages/cement/core/foundation.py", line 882, in run
return_val = self.controller._dispatch()
File "/usr/local/lib/python3.8/dist-packages/cement/core/controller.py", line 471, in _dispatch
return func()
File "/usr/local/lib/python3.8/dist-packages/cement/core/controller.py", line 471, in _dispatch
return func()
File "/usr/local/lib/python3.8/dist-packages/cement/core/controller.py", line 477, in _dispatch
return func()
File "/usr/local/lib/python3.8/dist-packages/wo/cli/plugins/site_update.py", line 138, in default
self.doupdatesite(pargs)
File "/usr/local/lib/python3.8/dist-packages/wo/cli/plugins/site_update.py", line 802, in doupdatesite
if 'wo_db_name' in data.keys() and not data['wp']:
KeyError: 'wp'
But if I test the configuration as per [https://awesomeopensource.com/project/mitchellkrogza/nginx-ultimate-bad-bot-blocker]
# curl -I https://example.com -e http://100dollars-seo.com
curl: (92) HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)