Window's Apache 2.4 Webserver .htaccess makes web stie slow fix

This is a costume list of banned IPs & subnets created by SHC.
Post Reply
southhawkct
Site Admin
Posts: 388
Joined: Sun Oct 05, 2014 9:29 pm
Status: Offline

Window's Apache 2.4 Webserver .htaccess makes web stie slow fix

Post by southhawkct »

Has your Window's Apache 2.4 Webserver gotten slow because of a large .htaccess file? Well its because that file has to be read off of your hard drive for each request for an object on that page. My work around is this.

Step 1:
Apache24\conf\httpd.conf
and edit that file

Step 2:
Find

Code: Select all

    #
    # Controls who can get stuff from this server.
    #
    Require all granted
add the contents of your .htaccess file after that. Here's an example of a completed one

Code: Select all

    #
    # Controls who can get stuff from this server.
    #
    Require all granted
	order allow,deny
	deny from 96.47.226.0/24
	deny from 1.6.0.0/15
	deny from 1.22.0.0/15
	deny from 1.38.0.0/15
	deny from 217.147.243.88/29
	deny from 217.147.244.216/29
	allow from all
Step 3:
Save your changes to the httpd.conf file.

Step 4:
Restart your apache server.

That's it! Enjoy!

Now your custom ban list is now loaded into memory and you no longer have slow load times on your windows 2.4 Apache webserver.
---
South Hawk Computing LLC Owner :ugeek:
Any advice / recommendations given on this forum should ONLY be preformed at the user's own risk. South Hawk LLC does not offer any guarantees or warranties when a user attempts to try these fixes on their own. We are NOT responsible for any damages that may or may not occur to your devices. :geek:

Post Reply