Tagged: apache

Apache Performance

Apache Performance

Ulimit https://www.webperformance.com/load-testing-tools/blog/2012/12/setting-apache2-ulimit-for-maximum-prefork-performance/ Apache Maxclients https://abdussamad.com/archives/535-Apache-MaxClients.html Apache Maxclients param https://2bits.com/articles/tuning-the-apache-maxclients-parameter.html Apache Performance Tuning https://httpd.apache.org/docs/2.4/misc/perf-tuning.html Apache MPM Prefork https://httpd.apache.org/docs/2.4/mod/prefork.html Info on Options* HTTP/1.0 https://serverfault.com/questions/543355/options-http-1-0-in-access-log Page Speed Optimization https://varvy.com/pagespeed/ I have added a Keep alive directive in 3dd-server.conf – monitor if that is causing...

Blocking Access to a Url route in Apache

Blocking Access to a Url route in Apache

This serves a 403 forbidden for any route with blog. RewriteRule ^(.*/)?blog(.*/)?/ – [F,L] Great post talking about restricting files and paths in Apache http://www.ducea.com/2006/08/11/apache-tips-tricks-deny-access-to-some-folders/  

Limit Server Options Requests

Limit Server Options Requests

in httpd.conf <IfModule hmod_allowmethods> AllowMethods GET POST OPTIONS </IfModule> In each VirtualHost directive ## Disallow OPTIONS METHOD RewriteEngine On RewriteCond %{REQUEST_METHOD} !(GET|POST) RewriteRule .* – [F] This seems to stop the majority of the...

Working and testing redirects for Apache

Working and testing out redirects for Apache To work on a testing local install of the site make sure you have a local installation of the site you are trying to put redirects in...

0

Laravel Deployment on Ec2

You gotta have composer installed cd /home/ec2-user/ sudo curl -sS https://getcomposer.org/installer | php // sudo mv composer.phar /usr/local/bin/composer cd /var/www/html/website-directory // make vendor folder sudo mkdir vendor // change permissions sudo chmod -R 755...

0

Loggly Apache Missing Access Logs

I’ve been using Loggly to consolidate my server logs for about a month now.  Overall I’m extremely satisfied with the service and think that making my server logs more accessible has allowed me to...

0

Dealing With Hacked WordPress on EC2

I was going to start this article by saying that I’m a big fan of WordPress, but I’m hesitating. WordPress is super popular, and it gets the job done for most people, but let’s...

0

Monitor Web Connections to an Apache Server

I run quite a few different servers and recently just launched an AWS Ec2 instance. Unfortunately the Ec2 started to hang and become unresponsive even though the server was online the sites running on...

Remove or edit .php or .html from URL

If you are using a web server running Apache you can easily remove extensions from the url by using the Rewrite command inside of your .htaccess file.  What this allows you to do is...