By hrishim
I installed NextCloud on Ubuntu 18 using the guide at https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-nextcloud-on-ubuntu-18-04
Now I want to install fail2ban. The installation went OK and I can see fail2ban jail for sshd. The fail2ban log files show activity.
Questions: If I am running NextCloud do I need to configure fail2ban to handle apache log (by enabling apache-auth) ?
Does the NetCloud login page failures get logged to apache error_log?
If yes, how do I configure fail2ban to use the correct log file. Since apache was installed via snap its log file location is at a different path.
Sorry, I am new to this so I may be asking something obvious or may not have provided sufficient information. Do let me know if I should add any more information.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi @hrishim,
You can configure fail2ban to use the proper logs from it’s configuration file. The configuration file should be location somewhere in the fail2ban directory : /etc/fail2ban/
Kind regards, Kalin
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.