My YunoHost server
Hardware: AWS Free Tier
Version:
yunohost:
repo: stable
version: 3.6.5.3
yunohost-admin:
repo: stable
version: 3.6.5.1
moulinette:
repo: stable
version: 3.6.4.1
ssowat:
repo: stable
version: 3.6.4
I have access to my server: Through SSH
Are you in a special context or did you perform some particular tweaking on your YunoHost instance?
- I have renamed /etc/nginx/sites-available/default to default.vhost
- At the moment I have two active apps, each in a subdomain.
app1.mydomain[dot]com
app2.mydomain[dot]com
Description of my issue
I’m trying to configure nginx-ultimate-bad-bot-blocker in my yunohost but I can’t make it work properly.
My knowledge of nginx is very small so I couldn’t find the solution to this problem. I hope you can solve this problem and help more people to use this protection on their servers.
I followed all the instructions on the githuh page, but without success.
Well, I also tried adding the includes to the /etc/nginx/conf.d/mydomain.conf
file but it didn’t work.
I used the site recommended by the configuration guide to do the test run:
curl -I https://mydomain.com -e http://100dollars-seo.com
But I didn’t get any error messages on the connection (as it should be).
cat /etc/nginx/conf.d/globalblacklist.conf | grep 100dollars
"~*(?:\b)100dollars\-seo\.com(?:\b)" 1;
Commands I used during the installation:
sudo wget https://raw.githubusercontent.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/master/install-ngxblocker -O /usr/local/sbin/install-ngxblocker
sudo chmod +x /usr/local/sbin/install-ngxblocker
cd /usr/local/sbin/
sudo ./install-ngxblocker -x
sudo nginx -t
sudo nginx -s reload
My nginx configuration files:
/etc/nginx/nginx.conf
=> paste yunohost org/unixiqevem.nginx
/etc/nginx/sites-available/default.vhost
=> paste yunohost org/marocenupi.nginx
/etc/nginx/conf.d/mydomain.conf
=> paste yunohost org/iranenapol.pl
ls -l /etc/nginx/
ls /etc/nginx/sites-available/
ls -l /etc/nginx/conf.d/
ls -l /etc/nginx/bots.d/
=> paste yunohost org/eziribipuk.diff
I’m sorry for the badly formatted links, but I couldn’t publish this post any other way. Maybe there’s some limitation.