Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Error in Apache Installation Instructions #206

Open
s22-tech opened this issue Jul 15, 2024 · 1 comment
Open

[BUG] Error in Apache Installation Instructions #206

s22-tech opened this issue Jul 15, 2024 · 1 comment

Comments

@s22-tech
Copy link

The include path in this section is incomplete:

# ######################################
# GLOBAL! deny bad bots and IP addresses
# ######################################
#
# should be set after <VirtualHost>s see https://httpd.apache.org/docs/2.4/sections.html#merging
<Location "/">
	# AND-combine with preceding configuration sections  
	AuthMerging And
	# include black list
	Include custom.d/globalblacklist.conf
</Location>

The line:
Include custom.d/globalblacklist.conf

should actually be:
Include /etc/apache2/custom.d/globalblacklist.conf

Once I made the change, it worked.

@s22-tech
Copy link
Author

s22-tech commented Jul 15, 2024

I ran more tests and found that all paths that use Include custom.d/... inside globalblacklist.conf should be changed, as well, e.g.

Include /etc/apache2/custom.d/blacklist-user-agents.conf

I've been running this script for 2 years and never realized it wasn't working. All aspects of this script work now.

BTW, this install on Apache 2.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant