Author: john

Adding JS libraries in Laravel

Adding JS libraries in Laravel

Adding a library in Laravel To add with npm the library needs to be included and compiled with Webpack   Here is an example with Moment.js get the package (this will put in a...

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...

PHP Namespace resources and Autoloading with Composer

PHP Namespace resources and Autoloading with Composer

Fantastic Article about them https://www.thoughtfulcode.com/a-complete-guide-to-php-namespaces/ Composer Autoloading Resources https://phpenthusiast.com/blog/how-to-autoload-with-composer PHP JWT REST API Authentication https://www.codeofaninja.com/2018/09/rest-api-authentication-example-php-jwt-tutorial.html https://github.com/firebase/php-jwt

JWT authentication and resources

JWT authentication and resources

So much to look at. Where to Store your JWTs – Cookies vs HTML5 Web Storage Authentication in Cognito using JWT Encode or Decode JWT Debug and Peek at JWTs – JWT.io php JWT...

AWS Cognito for Facebook Login

AWS Cognito for Facebook Login

Excellent videos covering setting up and implementing AWS Cognito for a web app. This is a great solution for handing User registration and authentication for multiple systems.

Installing Yarn on Mojave

Installing Yarn on Mojave

I was unable to install yarn directly – I had to do a few additional steps for it to actually work. Here they are. I installed using homebrew for mac once homebrew was installed...

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...