PHPnews.io

Overview for 'serversforhackers'

LetsEncrypt with HAProxy

Written by Servers for Hackers / Original link on Jan. 26, 2019

LetsEncrypt with HAProxy This is a video from the Scaling Laravel course's Load Balancing module. Part of what I wanted to cover was how to use SSL certificates with a HAProxy load balancer. LetsEncrypt (certbot) is great for this, since we can get a free and trusted SSL certificate. Since we're us…


Mapping Headers in Nginx

Written by unknown / Original link on Jan. 26, 2019

? Nginx "map" is super useful!? Nginx sets incoming headers to variables ($http_foo)So, here we set X-Forwarded-Proto to the value of $cloudfront_proto that "map" creates by testing for two possible "proto" headers!https://t.co/VkNRMpDDqr pic.twitter.com/6CAXEhiA29— Chris Fidao (@fideloper) May 23,…


LetsEncrypt with HAProxy

Written by unknown / Original link on Jan. 26, 2019

LetsEncrypt with HAProxy This is a video from the Scaling Laravel course's Load Balancing module. Part of what I wanted to cover was how to use SSL certificates with a HAProxy load balancer. LetsEncrypt (certbot) is great for this, since we can get a free and trusted SSL certificate. Since we're us…


SSL Termination

Written by Servers for Hackers / Original link on Jan. 21, 2019

We'll set up SSL-termination on the load balancer. In this setup, the load balancer decrypts the SSL connection and sends an http request on port 80 over the local private network to the application servers. SSL Termination is a common setup, however there are setups that keep the connection encryp…


PHP, FPM, and Nginx

Written by Servers for Hackers / Original link on Jan. 21, 2019

PHP We can see we have php 7.0 available out of the box: sudo apt-cache show php-cli Instead of using that, we'll start by installing the latest PHP 7.1, via the populate PHP repository. # Add repository and update local cache of available packages sudo add-apt-repository -y ppa:ondrej/php sudo apt…


PHP App Setup & Permissions

Written by Servers for Hackers / Original link on Jan. 21, 2019

Composer First we installed Composer so we can get PHP dependencies: # Become user root sudo su # Pipe the composer installer to php, and pass the installer some flags curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer GitHub Next, we want to…